insert into [dbo].[T_MON_AIRCITYDAY]
select
[CITYCODE]
,[MONIDATE]
,[SO2]
,[SO2IAQI]
,[NO2]
,[COIAQI]
,[CO]
,[O3IAQI]
,[O3]
,[O38H]
,[O38HIAQI]
,[PM25]
,[PM10IAQI]
,[PM10]
,[AQI]
,[NO2IAQI]
,[PM25IAQI]
,[PRIMARYPOLLUTANT]
,(case when AIRLEVEL='优' then 1
when AIRLEVEL='良' then 2
when AIRLEVEL='轻度污染' then 3
when AIRLEVEL='中度污染' then 4
when AIRLEVEL='重度污染' then 5
when AIRLEVEL='严重污染' then 6
else null end) [AIRLEVEL]
from AirPingDSOld.dbo.T_MID_AIRQUALITYCITYDAY
select
[CITYCODE]
,[MONIDATE]
,[SO2]
,[SO2IAQI]
,[NO2]
,[COIAQI]
,[CO]
,[O3IAQI]
,[O3]
,[O38H]
,[O38HIAQI]
,[PM25]
,[PM10IAQI]
,[PM10]
,[AQI]
,[NO2IAQI]
,[PM25IAQI]
,[PRIMARYPOLLUTANT]
,(case when AIRLEVEL='优' then 1
when AIRLEVEL='良' then 2
when AIRLEVEL='轻度污染' then 3
when AIRLEVEL='中度污染' then 4
when AIRLEVEL='重度污染' then 5
when AIRLEVEL='严重污染' then 6
else null end) [AIRLEVEL]
from AirPingDSOld.dbo.T_MID_AIRQUALITYCITYDAY