|
|
select _id, latitude, longitude, data_org_type, data_type, business_process_type, data_source, data_sourcegrab_id, data_sourcegrab_pattern_name, data_model_id, data_model_name, source_id, source_name, entity_id, entity_type, to_timestamp(create_time) AS create_time, start_time, forecast_time, pre_days, lead_time, station_id, station_name, subject_id, subject_name, machine_id, machine_name, analyze_his_id, archive_record_id, tcc, hcc, lcc, mcc, tsfc, psfc, rhsfc, diffirr, directirr, tirr, wd_hub, ws_hub, ws, wd10, wd30, wd50, wd70, wd80, wd90, wd100, wd120, wd140, wd160, wd180, wd200, ws10, ws30, ws50, ws70, ws80, ws90, ws100, ws120, ws140, ws160, ws180, ws200 from data_short_term_weather_forecast_raw
|
|
|
+ select DISTINCT ON (forecast_time) _id, latitude, longitude, data_org_type, data_type, business_process_type, data_source, data_sourcegrab_id, data_sourcegrab_pattern_name, data_model_id, data_model_name, source_id, source_name, entity_id, entity_type, to_timestamp(create_time) AS create_time, start_time, forecast_time, pre_days, lead_time, station_id, station_name, subject_id, subject_name, machine_id, machine_name, analyze_his_id, archive_record_id, tcc, hcc, lcc, mcc, tsfc, psfc, rhsfc, diffirr, directirr, tirr, wd_hub, ws_hub, ws, wd10, wd30, wd50, wd70, wd80, wd90, wd100, wd120, wd140, wd160, wd180, wd200, ws10, ws30, ws50, ws70, ws80, ws90, ws100, ws120, ws140, ws160, ws180, ws200 from data_short_term_weather_forecast_raw
|