SELECT SEQ_T_ELECDASHBOARD_REALTIME.NEXTVAL as id FROM DUAL
insert into t_elecdashboard_realtime
id,
pull_date,
gtg1_power_gen_level,
gtg1_efficiency,
gtg2_power_gen_level,
gtg2_efficiency,
gtg3_power_gen_level,
gtg3_efficiency,
stg_power_gen_level,
stg_efficiency,
total_power_gen,
total_efficiency,
steam_hhp,
steam_hp,
steam_mp,
steam_lp,
gas_real_time,
gas_left,
gas_used,
gas_plan,
gas_elec,
gas_syn_gas,
gas_u2,
gas_styrene,
elec_power_gen,
elec_power_switch,
elec_used,
elec_diff,
elec_byc_used,
elec_boc_used,
carbon_used,
carbon_real_time,
sub,
sub_furnace_load,
hhp_pphhp,
hhp_aaae,
hhp_gaa,
hhp_syn,
hhp_p3802,
hp_lpg,
hp_sub,
hp_ng,
hp_j1501,
hp_j1504_in,
hp_j1504_out,
hp_user,
mp_ncip_mp,
mp150511,
mp150512,
mp_pp_mp,
mp_p9801_in,
mp_p9801_out,
mp_j1502,
mp_user,
lp_pp_lp,
lp_empty,
lp_mp_letdown,
lp_j1509,
lp_j1503,
lp_ldpe_ts,
lp_ldpe_dm,
lp_user,
bcc_syn,
bcc_ypc,
hrsg1_smoke_convert,
hrsg1_so2_convert,
hrsg1_nox_convert,
hrsg2_smoke_convert,
hrsg2_so2_convert,
hrsg2_nox_convert,
hrsg3_smoke_convert,
hrsg3_so2_convert,
hrsg3_nox_convert,
rain_ph,
rain_cod,
waste_ph,
waste_cod,
gtg45ha1,
gtg45ha2,
gtg45ha3,
gtg45ha4,
gtg45ha5,
gtg45ha6,
gtg45ha7,
gtg45ha8,
gtg45ha9,
gtg45ht1,
gtg45ht2,
gtg45ht3,
gtg45ht4,
gtg45ht5,
gtg45ht6,
qt61001,
qt61002,
qt61003,
qt61004,
qt61005,
qt61101,
qt61102,
qt61103,
qt61104,
qt61105,
qt76001,
qt76002,
qt76041,
qt80001,
qt80002,
qt80003,
qt91001,
qt91002,
qt91003,
qt91004,
qt91005,
qt91006,
qt91011,
qt91012,
qt91013,
at83001,
at83002,
at83003,
at83004,
qt12001,
qt12501,
qt12502,
qt22001,
qt22501,
qt22502,
qt32001,
qt32002,
qt32005,
qt32003,
qt32004,
ai82002,
ai82003,
ai82004,
ai82005,
ai82006,
ai82007,
ai82008,
ai82009,
ai82010,
ai82011,
ai82101,
ai82102,
ai82103,
ai82104,
ai82105,
ai82106,
ai82107,
ai82108,
ai82109,
ai82110,
ai82111,
ai82112,
ai82113,
hrsg1_ai82201,
hrsg1_ai82202,
hrsg1_ai82203,
hrsg1_ai82204,
hrsg1_ai82205,
hrsg1_ai82206,
hrsg1_ai82207,
hrsg1_ai82208,
hrsg1_ai82209,
hrsg1_ai82210,
hrsg1_ai82211,
hrsg1_ai82212,
hrsg1_air12551,
hrsg1_air12552,
hrsg1_air12553,
hrsg1_air12554,
hrsg1_air12555,
hrsg1_air12556,
hrsg1_air12557,
hrsg1_air12558,
hrsg2_ai82301,
hrsg2_ai82302,
hrsg2_ai82303,
hrsg2_ai82304,
hrsg2_ai82305,
hrsg2_ai82306,
hrsg2_ai82307,
hrsg2_ai82308,
hrsg2_ai82309,
hrsg2_ai82310,
hrsg2_ai82311,
hrsg2_ai82312,
hrsg2_air22551,
hrsg2_air22552,
hrsg2_air22553,
hrsg2_air22554,
hrsg2_air22555,
hrsg2_air22556,
hrsg2_air22557,
hrsg2_air22558,
hrsg2_qi22240,
hrsg2_qi22241,
hrsg2_qi22242,
hrsg3_ai82401,
hrsg3_ai82402,
hrsg3_ai82403,
hrsg3_ai82404,
hrsg3_ai82405,
hrsg3_ai82406,
hrsg3_ai82407,
hrsg3_ai82408,
hrsg3_ai82409,
hrsg3_ai82410,
hrsg3_ai82411,
hrsg3_ai82412,
hrsg3_air32551,
hrsg3_air32552,
hrsg3_air32553,
hrsg3_air32554,
hrsg3_air32555,
hrsg3_air32556,
hrsg3_air32557,
hrsg3_air32558,
hrsg3_qi32240,
hrsg3_qi32241,
hrsg3_qi32242,
#{id},
#{pullDate},
#{gtg1PowerGenLevel},
#{gtg1Efficiency},
#{gtg2PowerGenLevel},
#{gtg2Efficiency},
#{gtg3PowerGenLevel},
#{gtg3Efficiency},
#{stgPowerGenLevel},
#{stgEfficiency},
#{totalPowerGen},
#{totalEfficiency},
#{steamHhp},
#{steamHp},
#{steamMp},
#{steamLp},
#{gasRealTime},
#{gasLeft},
#{gasUsed},
#{gasPlan},
#{gasElec},
#{gasSynGas},
#{gasU2},
#{gasStyrene},
#{elecPowerGen},
#{elecPowerSwitch},
#{elecUsed},
#{elecDiff},
#{elecBycUsed},
#{elecBocUsed},
#{carbonUsed},
#{carbonRealTime},
#{sub},
#{subFurnaceLoad},
#{hhpPphhp},
#{hhpAaae},
#{hhpGaa},
#{hhpSyn},
#{hhpP3802},
#{hpLpg},
#{hpSub},
#{hpNg},
#{hpJ1501},
#{hpJ1504In},
#{hpJ1504Out},
#{hpUser},
#{mpNcipMp},
#{mp150511},
#{mp150512},
#{mpPpMp},
#{mpP9801In},
#{mpP9801Out},
#{mpJ1502},
#{mpUser},
#{lpPpLp},
#{lpEmpty},
#{lpMpLetdown},
#{lpJ1509},
#{lpJ1503},
#{lpLdpeTs},
#{lpLdpeDm},
#{lpUser},
#{bccSyn},
#{bccYpc},
#{hrsg1SmokeConvert},
#{hrsg1So2Convert},
#{hrsg1NoxConvert},
#{hrsg2SmokeConvert},
#{hrsg2So2Convert},
#{hrsg2NoxConvert},
#{hrsg3SmokeConvert},
#{hrsg3So2Convert},
#{hrsg3NoxConvert},
#{rainPh},
#{rainCod},
#{wastePh},
#{wasteCod},
#{gtg45ha1},
#{gtg45ha2},
#{gtg45ha3},
#{gtg45ha4},
#{gtg45ha5},
#{gtg45ha6},
#{gtg45ha7},
#{gtg45ha8},
#{gtg45ha9},
#{gtg45ht1},
#{gtg45ht2},
#{gtg45ht3},
#{gtg45ht4},
#{gtg45ht5},
#{gtg45ht6},
#{qt61001},
#{qt61002},
#{qt61003},
#{qt61004},
#{qt61005},
#{qt61101},
#{qt61102},
#{qt61103},
#{qt61104},
#{qt61105},
#{qt76001},
#{qt76002},
#{qt76041},
#{qt80001},
#{qt80002},
#{qt80003},
#{qt91001},
#{qt91002},
#{qt91003},
#{qt91004},
#{qt91005},
#{qt91006},
#{qt91011},
#{qt91012},
#{qt91013},
#{at83001},
#{at83002},
#{at83003},
#{at83004},
#{qt12001},
#{qt12501},
#{qt12502},
#{qt22001},
#{qt22501},
#{qt22502},
#{qt32001},
#{qt32002},
#{qt32005},
#{qt32003},
#{qt32004},
#{ai82002},
#{ai82003},
#{ai82004},
#{ai82005},
#{ai82006},
#{ai82007},
#{ai82008},
#{ai82009},
#{ai82010},
#{ai82011},
#{ai82101},
#{ai82102},
#{ai82103},
#{ai82104},
#{ai82105},
#{ai82106},
#{ai82107},
#{ai82108},
#{ai82109},
#{ai82110},
#{ai82111},
#{ai82112},
#{ai82113},
#{hrsg1Ai82201},
#{hrsg1Ai82202},
#{hrsg1Ai82203},
#{hrsg1Ai82204},
#{hrsg1Ai82205},
#{hrsg1Ai82206},
#{hrsg1Ai82207},
#{hrsg1Ai82208},
#{hrsg1Ai82209},
#{hrsg1Ai82210},
#{hrsg1Ai82211},
#{hrsg1Ai82212},
#{hrsg1Air12551},
#{hrsg1Air12552},
#{hrsg1Air12553},
#{hrsg1Air12554},
#{hrsg1Air12555},
#{hrsg1Air12556},
#{hrsg1Air12557},
#{hrsg1Air12558},
#{hrsg2Ai82301},
#{hrsg2Ai82302},
#{hrsg2Ai82303},
#{hrsg2Ai82304},
#{hrsg2Ai82305},
#{hrsg2Ai82306},
#{hrsg2Ai82307},
#{hrsg2Ai82308},
#{hrsg2Ai82309},
#{hrsg2Ai82310},
#{hrsg2Ai82311},
#{hrsg2Ai82312},
#{hrsg2Air22551},
#{hrsg2Air22552},
#{hrsg2Air22553},
#{hrsg2Air22554},
#{hrsg2Air22555},
#{hrsg2Air22556},
#{hrsg2Air22557},
#{hrsg2Air22558},
#{hrsg2Qi22240},
#{hrsg2Qi22241},
#{hrsg2Qi22242},
#{hrsg3Ai82401},
#{hrsg3Ai82402},
#{hrsg3Ai82403},
#{hrsg3Ai82404},
#{hrsg3Ai82405},
#{hrsg3Ai82406},
#{hrsg3Ai82407},
#{hrsg3Ai82408},
#{hrsg3Ai82409},
#{hrsg3Ai82410},
#{hrsg3Ai82411},
#{hrsg3Ai82412},
#{hrsg3Air32551},
#{hrsg3Air32552},
#{hrsg3Air32553},
#{hrsg3Air32554},
#{hrsg3Air32555},
#{hrsg3Air32556},
#{hrsg3Air32557},
#{hrsg3Air32558},
#{hrsg3Qi32240},
#{hrsg3Qi32241},
#{hrsg3Qi32242},
delete * from t_elecdashboard_realtime
where pull_date != ( select max(pull_date) from t_elecdashboard_realtime)