Do I need a variable for the temp table?
Select a.station_nbr, a.station_name,a.group_code, a.beg_eff_date_DGC, a.end_eff_date_DGC,
b.beg_eff_date_SES, b.end_eff_date_SES
INTO #TP_DGC_vs_SES
From #TP_DGC a full outer join #TP_SES b
on a.station_nbr=b.station_nbr or a.group_code=...