Browse Source

Fixed performance issue union select #1

COStage_0.2_Release
Daniel Quathamer 3 years ago
parent
commit
2be3bdec55
  1. 24
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql

24
src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql

@ -264,11 +264,31 @@ select st_studium_nr,
-- where semester = 20202 -- where semester = 20202
--and matrikelnummer = '5545242' --and matrikelnummer = '5545242'
where kz_rueck_beur_ein is not null where kz_rueck_beur_ein is not null
;
-- The below code appends the data for the records having kz_rueck_beur_ein as NULL, this data could be helpful for other diagonostic purpose; here this is segregated -- The below code appends the data for the records having kz_rueck_beur_ein as NULL, this data could be helpful for other diagonostic purpose; here this is segregated
-- from above to accomodate ranking in studiengangNummer field -- from above to accomodate ranking in studiengangNummer field
union insert into costage_st_studien_aggr(
st_studium_nr,
st_studstamm_nr,
matrikelnummer,
st_studiengang_nr,
st_studienstatus_nr,
statustyp,
hrst,
semester,
fachsemester,
hssem,
primaerflag,
studiengang_nr,
fach_nr,
unikey,
anfdat,
ruebeudat,
endedat,
stufrm,
kz_rueck_beur_ein
)
select st_studium_nr, select st_studium_nr,
st_studstamm_nr, st_studstamm_nr,

Loading…
Cancel
Save