Browse Source

Denormalize studysemester (Fachsemester) COSTAGE/issues/2

COStage_0.2_Release
Daniel Quathamer 3 years ago
parent
commit
f937f5f522
  1. 121
      src-modules/module/costage/conf/costage.xml
  2. 47
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql
  3. 22
      src-modules/module/costage/masken/43040_felderinfo.unl
  4. 2
      src-modules/module/costage/masken/43040_maske_system_bez.unl
  5. 12
      src-modules/module/costage/masken/43040_maskeninfo.unl
  6. 2
      src-modules/module/costage/masken/43040_sachgeb_maske_bez.unl
  7. 28
      src-modules/module/costage/schluesseltabellen/cifx_fuellen.sql
  8. 7
      src-modules/module/costage/schluesseltabellen/semester_bereinigen.sql
  9. 9
      src-modules/module/costage/schluesseltabellen/trans_costage_st_studiengaenge.sql
  10. 15199
      src-modules/module/sos/rohdaten/sos_costage_unload.x
  11. 7208
      src-modules/module/sos/rohdaten/sos_costage_unload.xml

121
src-modules/module/costage/conf/costage.xml

@ -25,7 +25,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
--> -->
<table name="costage_st_abschlussziele_amtstat" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_abschlussziele_amtstat" thema="Studierende" caption="Abschlüsse zur amtl. Statistik (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<description>Abschlüsse zur amtl. Statistik (CO)</description>
<columns><column name="st_absz_amtstat_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_absz_amtstat_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="statistik_code" type ="VARCHAR" size ="2" default ="" notnull ="true" /> <column name="statistik_code" type ="VARCHAR" size ="2" default ="" notnull ="true" />
<column name="name" type ="VARCHAR" size ="150" default ="" notnull ="true" /> <column name="name" type ="VARCHAR" size ="150" default ="" notnull ="true" />
@ -40,7 +41,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_abschlussziele_lokal" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_abschlussziele_lokal" thema="Studierende" caption="Abschlüsse (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<description>Abschlüsse (CO)</description>
<columns><column name="st_absz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_absz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="code" type ="VARCHAR" size ="2" default ="" notnull ="true" /> <column name="code" type ="VARCHAR" size ="2" default ="" notnull ="true" />
<column name="name" type ="VARCHAR" size ="200" default ="" notnull ="true" /> <column name="name" type ="VARCHAR" size ="200" default ="" notnull ="true" />
@ -54,7 +56,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_fachsemester" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_fachsemester" thema="Studierende" caption="Studierenden-Fach- und Hochschulsemester (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studierenden-Fach- und Hochschulsemester (CO)</description>
<columns><column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="fachsemester" type ="DECIMAL" size ="(38,0)" default ="" notnull ="true" /> <column name="fachsemester" type ="DECIMAL" size ="(38,0)" default ="" notnull ="true" />
@ -68,7 +71,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_fakultaeten" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_fakultaeten" thema="Studierende" caption="Fakultäten (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<description>Fakultäten (CO)</description>
<columns><column name="st_fakultaeten_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_fakultaeten_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="unikey" type ="VARCHAR" size ="4" default ="" notnull ="true" /> <column name="unikey" type ="VARCHAR" size ="4" default ="" notnull ="true" />
<column name="fakultaet_key" type ="VARCHAR" size ="2" default ="" notnull ="true" /> <column name="fakultaet_key" type ="VARCHAR" size ="2" default ="" notnull ="true" />
@ -86,7 +90,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_hauptstudien" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_hauptstudien" thema="Studierende" caption="Studierenden-Primärfächer (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studierenden-Primärfächer (CO)</description>
<columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="false" /> <column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="false" />
<column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
@ -99,7 +104,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_hoererstatus" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_hoererstatus" thema="Studierende" caption="Studierenden-Hörerstatus (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studierenden-Hörerstatus (CO)</description>
<columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="hoererstatus_name" type ="VARCHAR" size ="4000" default ="" notnull ="false" /> <column name="hoererstatus_name" type ="VARCHAR" size ="4000" default ="" notnull ="false" />
@ -113,7 +119,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_laender" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_laender" thema="Studierende" caption="Staaten (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<description>Staaten (CO)</description>
<columns><column name="st_land_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_land_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="name" type ="VARCHAR" size ="4000" default ="" notnull ="false" /> <column name="name" type ="VARCHAR" size ="4000" default ="" notnull ="false" />
<column name="iso_code_2" type ="VARCHAR" size ="2" default ="" notnull ="false" /> <column name="iso_code_2" type ="VARCHAR" size ="2" default ="" notnull ="false" />
@ -132,7 +139,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_land_regionen" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_land_regionen" thema="Studierende" caption="Länder und Regionen (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<description>Länder und Regionen (CO)</description>
<columns><column name="st_land_reg_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_land_reg_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="name" type ="VARCHAR" size ="100" default ="" notnull ="true" /> <column name="name" type ="VARCHAR" size ="100" default ="" notnull ="true" />
<column name="statistik_code" type ="VARCHAR" size ="5" default ="" notnull ="false" /> <column name="statistik_code" type ="VARCHAR" size ="5" default ="" notnull ="false" />
@ -146,7 +154,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_personen" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_personen" thema="Studierende" caption="Personstammdaten (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Personstammdaten (CO)</description>
<columns><column name="nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="matrikelnummer" type ="VARCHAR" size ="12" default ="" notnull ="false" /> <column name="matrikelnummer" type ="VARCHAR" size ="12" default ="" notnull ="false" />
<column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="true" /> <column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="true" />
@ -162,7 +171,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_semester" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_semester" thema="Studierende" caption="Semester (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Semester (CO)</description>
<columns><column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="semester_id" type ="VARCHAR" size ="3" default ="" notnull ="true" /> <column name="semester_id" type ="VARCHAR" size ="3" default ="" notnull ="true" />
<column name="semester_anfang" type ="DATETIME" size ="7" default ="" notnull ="true" /> <column name="semester_anfang" type ="DATETIME" size ="7" default ="" notnull ="true" />
@ -178,7 +188,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</rs></foreignKeys> </rs></foreignKeys>
</table> </table>
<table name="costage_st_semester_neu" thema="Studierende" typ="Ladetabelle" releaseUnload="empty"> <table name="costage_st_semester_neu" thema="Studierende" caption="" typ="Ladetabelle" releaseUnload="empty">
<columns><column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_sem_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="semester_id" type ="VARCHAR" size ="3" default ="" notnull ="true" /> <column name="semester_id" type ="VARCHAR" size ="3" default ="" notnull ="true" />
<column name="semester_anfang" type ="DATETIME" size ="7" default ="" notnull ="true" /> <column name="semester_anfang" type ="DATETIME" size ="7" default ="" notnull ="true" />
@ -192,7 +202,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<foreignKeys><rs> <foreignKeys><rs>
</rs></foreignKeys> </rs></foreignKeys>
</table> </table>
<table name="costage_st_studienarten" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studienarten" thema="Studierende" caption="Studienarten (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studienarten (CO)</description>
<columns><column name="st_std_art_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_std_art_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="kurzbezeichnung" type ="VARCHAR" size ="10" default ="" notnull ="true" /> <column name="kurzbezeichnung" type ="VARCHAR" size ="10" default ="" notnull ="true" />
<column name="name" type ="VARCHAR" size ="100" default ="" notnull ="true" /> <column name="name" type ="VARCHAR" size ="100" default ="" notnull ="true" />
@ -205,7 +216,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_studienfaecher" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studienfaecher" thema="Studierende" caption="Studienfächer (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studienfächer (CO)</description>
<columns><column name="st_stdfach_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_stdfach_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="name" type ="VARCHAR" size ="100" default ="" notnull ="true" /> <column name="name" type ="VARCHAR" size ="100" default ="" notnull ="true" />
<column name="statistik_code" type ="VARCHAR" size ="3" default ="" notnull ="true" /> <column name="statistik_code" type ="VARCHAR" size ="3" default ="" notnull ="true" />
@ -219,7 +231,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_studiengaenge_mtsg" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studiengaenge_mtsg" thema="Studierende" caption="Studierengänge (mehrfach) (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<description>Studierengänge (mehrfach) (CO)</description>
<columns><column name="st_studiengang_nr_msg" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studiengang_nr_msg" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="st_studiengang_nr_tsg" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_studiengang_nr_tsg" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="studienfach_sortierung" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="studienfach_sortierung" type ="INTEGER" size ="8" default ="" notnull ="true" />
@ -232,7 +245,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_studiengaenge_neu" thema="Studierende" typ="Ladetabelle" releaseUnload="empty"> <table name="costage_st_studiengaenge_neu" thema="Studierende" caption="" typ="Ladetabelle" releaseUnload="empty">
<columns><column name="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="studiengangs_identifikator" type ="VARCHAR" size ="4000" default ="" notnull ="false" /> <column name="studiengangs_identifikator" type ="VARCHAR" size ="4000" default ="" notnull ="false" />
<column name="studiengangs_bezeichnung" type ="VARCHAR" size ="4000" default ="" notnull ="false" /> <column name="studiengangs_bezeichnung" type ="VARCHAR" size ="4000" default ="" notnull ="false" />
@ -253,23 +266,26 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</rs></foreignKeys> </rs></foreignKeys>
</table> </table>
<table name="costage_st_studiengaenge" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studiengaenge" thema="Studierende" caption="Studiengänge (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<description>Studiengänge (CO)</description>
<columns><column name="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="studiengangs_identifikator" type ="VARCHAR" size ="4000" default ="" notnull ="false" /> <column name="studiengangs_identifikator" type ="VARCHAR" size ="4000" default ="" notnull ="false" description="" />
<column name="studiengangs_bezeichnung" type ="VARCHAR" size ="4000" default ="" notnull ="false" /> <column name="studiengangs_bezeichnung" type ="VARCHAR" size ="4000" default ="" notnull ="false" description="" />
<column name="st_absz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_absz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="st_skz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_skz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="fachkennzeichen" type ="VARCHAR" size ="10" default ="" notnull ="false" /> <column name="fachkennzeichen" type ="VARCHAR" size ="10" default ="" notnull ="false" description="" currentlyUsed="false"/>
<column name="st_std_art_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_std_art_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="studiengangs_typ_name" type ="VARCHAR" size ="100" default ="" notnull ="true" /> <column name="studiengangs_typ_name" type ="VARCHAR" size ="100" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="studiengangs_typ_kb" type ="VARCHAR" size ="10" default ="" notnull ="false" /> <column name="studiengangs_typ_kb" type ="VARCHAR" size ="10" default ="" notnull ="false" description="" currentlyUsed="false"/>
<column name="studientyp_name" type ="VARCHAR" size ="100" default ="" notnull ="true" /> <column name="studientyp_name" type ="VARCHAR" size ="100" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="studientyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="true" /> <column name="studientyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="true" description="" currentlyUsed="false"/>
<column name="stp_stp_nr" type ="INTEGER" size ="8" default ="" notnull ="false" /> <column name="stp_stp_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="" currentlyUsed="false"/>
<column name="stg" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienfach"/> <column name="stg" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienfach"/>
<column name="abschluss" type ="CHAR" size ="10" default ="" notnull ="false" description="Abschluss"/> <column name="abschluss" type ="CHAR" size ="10" default ="" notnull ="false" description="Abschluss"/>
<column name="stuart" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienart"/> <column name="stuart" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienart"/>
<column name="stufrm" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienform"/> <column name="stufrm" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienform"/>
<column name="pversion" type ="VARCHAR" size ="255" default ="" notnull ="false" description="SPO-Version"/>
<column name="rsz" type ="INTEGER" size ="255" default ="" notnull ="false" description="Regelstudienzeit"/>
</columns> </columns>
<indexes></indexes> <indexes></indexes>
@ -278,7 +294,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<foreignKeys><rs> <foreignKeys><rs>
</rs></foreignKeys> </rs></foreignKeys>
</table> </table>
<table name="costage_st_studienkennzahlen" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studienkennzahlen" thema="Studierende" caption="Studienfächer (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studienfächer (CO)</description>
<columns><column name="st_skz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_skz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="skz_key" type ="VARCHAR" size ="4" default ="" notnull ="true" /> <column name="skz_key" type ="VARCHAR" size ="4" default ="" notnull ="true" />
<column name="unikey" type ="VARCHAR" size ="4" default ="" notnull ="true" /> <column name="unikey" type ="VARCHAR" size ="4" default ="" notnull ="true" />
@ -295,7 +312,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_studienstatus" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studienstatus" thema="Studierende" caption="Studienstatus pro Semester (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studienstatus pro Semester (CO)</description>
<columns> <columns>
<column name="st_studienstatus_nr" type ="DECIMAL" size ="(38,0)" default ="" notnull ="true" /> <column name="st_studienstatus_nr" type ="DECIMAL" size ="(38,0)" default ="" notnull ="true" />
<column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
@ -312,7 +330,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_studien_spoversionen" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studien_spoversionen" thema="Studierende" caption="SPO-Versionen pro Studium" typ="Datentabelle" releaseUnload="empty">
<columns><column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="stp_stp_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="stp_stp_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="gueltig_ab" type ="DATETIME" size ="7" default ="" notnull ="true" /> <column name="gueltig_ab" type ="DATETIME" size ="7" default ="" notnull ="true" />
@ -330,7 +348,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_studien" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studien" thema="Studierende" caption="Studienverläufe (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studienverläufe (CO)</description>
<columns><column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <column name="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
@ -345,7 +364,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_st_studierendenstammdaten_neu" thema="Studierende" typ="Ladetabelle" releaseUnload="empty"> <table name="costage_st_studierendenstammdaten_neu" thema="Studierende" caption="" typ="Ladetabelle" releaseUnload="empty">
<columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="matrikelnummer" type ="VARCHAR" size ="12" default ="" notnull ="false" /> <column name="matrikelnummer" type ="VARCHAR" size ="12" default ="" notnull ="false" />
<column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="true" /> <column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="true" />
@ -367,7 +386,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</rs></foreignKeys> </rs></foreignKeys>
</table> </table>
<table name="costage_st_studierendenstammdaten" thema="Studierende" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studierendenstammdaten" thema="Studierende" caption="Studierendenstammdaten (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studierendenstammdaten (CO)</description>
<columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
<column name="matrikelnummer" type ="INTEGER" size ="12" default ="" notnull ="false" /> <column name="matrikelnummer" type ="INTEGER" size ="12" default ="" notnull ="false" />
<column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="true" /> <column name="vorname" type ="VARCHAR" size ="255" default ="" notnull ="true" />
@ -395,7 +415,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<table name="costage_st_studien_aggr" thema="Studierende" typ="Hilfstabelle" releaseUnload="empty"> <table name="costage_st_studien_aggr" thema="Studierende" caption="Studienverläufe (CO)" typ="Hilfstabelle" releaseUnload="empty">
<columns><column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="Studium (ID)" /> <columns><column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="Studium (ID)" />
<column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="Studierendenstammdaten (ID)" /> <column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="Studierendenstammdaten (ID)" />
<column name="matrikelnummer" type ="INTEGER" size ="8" default ="" notnull ="false" description="Matrikelnummer" /> <column name="matrikelnummer" type ="INTEGER" size ="8" default ="" notnull ="false" description="Matrikelnummer" />
@ -409,6 +429,12 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="primaerflag" type ="SMALLINT" size ="2" default ="" notnull ="false" description="Primärfach" /> <column name="primaerflag" type ="SMALLINT" size ="2" default ="" notnull ="false" description="Primärfach" />
<column name="studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (Nr.)" /> <column name="studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (Nr.)" />
<column name="fach_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Fach (Nr.)" /> <column name="fach_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Fach (Nr.)" />
<column name="unikey" type ="CHAR" size ="10" default ="" notnull ="false" description="Hochschulnummer" />
<column name="anfdat" type ="DATE" size ="4" default ="" notnull ="false" description="Beginndatum"/>
<column name="ruebeudat" type ="DATE" size ="4" default ="" notnull ="false" description="Rückmeldedatum"/>
<column name="endedat" type ="DATE" size ="4" default ="" notnull ="false" description="Datum der Exmatr."/>
<column name="stufrm" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienform"/>
<column name="kz_rueck_beur_ein" type ="SMALLINT" size ="2" default ="" notnull ="false" description="Rückmeldestatus (amtlich)" />
</columns> </columns>
<indexes></indexes> <indexes></indexes>
@ -495,20 +521,23 @@ parent="CO Basisdaten">Abfragen zur Administration CO Basisdaten</thema>
displayType="select" visibleFields="semester_bezeichnung" format="%s"> displayType="select" visibleFields="semester_bezeichnung" format="%s">
<relation-column from="st_sem_nr" to="st_sem_nr" /> <relation-column from="st_sem_nr" to="st_sem_nr" />
</relation> </relation>
<!-- costage_st_studiengaenge -->
<relation from="cifx" to="costage_st_studiengaenge" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="stg" />
<relation-column from="key" to="30" />
</relation>
<relation from="cifx" to="costage_st_studiengaenge" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="abschluss" />
<relation-column from="key" to="35" />
</relation>
<!--costage_st_studien_aggr--> <!--costage_st_studien_aggr-->
<relation from="costage_st_studien" to="costage_st_studien_aggr" delete="FALSE" <relation from="costage_st_studien" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="st_studium_nr" format="%s"> displayType="select" visibleFields="st_studium_nr" format="%s">
<relation-column from="st_studium_nr" to="st_studium_nr" /> <relation-column from="st_studium_nr" to="st_studium_nr" />
</relation> </relation>
<relation from="costage_st_semester" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="semester_bezeichnung" format="%s">
<relation-column from="st_sem_nr" to="st_sem_nr" />
</relation>
<relation from="costage_st_abschlussziele_lokal" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="st_absz_nr" to="st_absz_nr" />
</relation>
<relation from="costage_st_studiengaenge" to="costage_st_studien_aggr" delete="FALSE" <relation from="costage_st_studiengaenge" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="studiengangs_bezeichnung" format="%s"> displayType="select" visibleFields="studiengangs_bezeichnung" format="%s">
<relation-column from="st_studiengang_nr" to="st_studiengang_nr" /> <relation-column from="st_studiengang_nr" to="st_studiengang_nr" />
@ -527,6 +556,10 @@ parent="CO Basisdaten">Abfragen zur Administration CO Basisdaten</thema>
<relation-column from="key" to="401" /> <relation-column from="key" to="401" />
</relation> </relation>
<relation from="costage_st_semester" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="semester_bezeichnung" format="%s">
<relation-column from="semester_tid" to="semester" />
</relation>
</data-integrity> </data-integrity>
</database> </database>
@ -571,7 +604,9 @@ parent="CO Basisdaten">Abfragen zur Administration CO Basisdaten</thema>
<etl-step name="Aggregation" type="aggr"> <etl-step name="Aggregation" type="aggr">
<action> <action>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_studien_aggr_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_studien_aggr_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/semester_bereinigen.sql" database=""/> <!--<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/semester_bereinigen.sql" database="">
<description>Ungenutzte Semester, d.h. Semester, die keine Bewegungsdaten enthalten (z.B. WS 1937/1938) entfernen</description>
</nativeaction>-->
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/vacuum_pg.sql" database="POSTGRES"/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/vacuum_pg.sql" database="POSTGRES"/>
</action> </action>

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

@ -1,10 +1,5 @@
--freemarker template
--Abfrage Maske Studierende (Zeitreihe) CO Basisdaten (43000) durchführen 14:54:12
--Abfrage
SELECT SELECT
@ -27,6 +22,7 @@ S.geschlecht,
S.ca12_staat, S.ca12_staat,
S.second_nationality, S.second_nationality,
SG.fachkennzeichen, SG.fachkennzeichen,
ST.studienform_statistik_code,
null::integer as st_studiengang_nr_msg, null::integer as st_studiengang_nr_msg,
null::integer as st_studiengang_nr_tsg, null::integer as st_studiengang_nr_tsg,
null::integer as studienfach_sortierung, null::integer as studienfach_sortierung,
@ -37,7 +33,12 @@ null::char(10) as statustyp,
0::smallint as primaerflag, 0::smallint as primaerflag,
null::integer as studiengang_nr, null::integer as studiengang_nr,
null::integer as fach_nr, null::integer as fach_nr,
rank () over (partition by SM.st_sem_nr, S.st_studstamm_nr, SG.studiengangs_identifikator order by gueltig_ab desc) as status_historie null::char(10) as unikey,
null::date as anfdat,
null::date as ruebeudat,
null::date as endedat,
null::smallint as kz_rueck_beur_ein,
rank () over (partition by SM.st_sem_nr, S.st_studstamm_nr, SG.studiengangs_identifikator order by SA.gueltig_ab desc) as status_historie
into temp tmp_studien into temp tmp_studien
FROM costage_st_studierendenstammdaten S, FROM costage_st_studierendenstammdaten S,
costage_st_studien ST, costage_st_studien ST,
@ -57,7 +58,7 @@ and SA.st_studium_nr=ST.st_studium_nr
and SA.st_sem_nr=SM.st_sem_nr and SA.st_sem_nr=SM.st_sem_nr
and SA.studienstatustyp not in ('a','o') and SA.studienstatustyp not in ('a','o')
and ${COSTAGE_STUDENT_FILTER} and ${COSTAGE_STUDENT_FILTER}
--group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14 --group by 1,2,3,4,5,6,7,8,9,10,11,12,13
; ;
-- select * from tmp_studien -- select * from tmp_studien
-- update tmp_studien -- update tmp_studien
@ -89,7 +90,7 @@ where F.st_studium_nr=tmp_studien.st_studium_nr
and F.st_sem_nr=tmp_studien.st_sem_nr and F.st_sem_nr=tmp_studien.st_sem_nr
and F.fachsemestertyp='HS' and F.fachsemestertyp='HS'
; ;
--todo: langsam:
update tmp_studien update tmp_studien
set primaerflag=1 set primaerflag=1
where exists (select st_studstamm_nr where exists (select st_studstamm_nr
@ -109,6 +110,16 @@ update tmp_studien set fach_nr=1
where fach_nr is null; where fach_nr is null;
update tmp_studien set unikey=val(K.unikey)
from costage_st_studiengaenge G, costage_st_studienkennzahlen K
where G.st_studiengang_nr=tmp_studien.st_studiengang_nr
and K.st_skz_nr=G.st_skz_nr
;
update tmp_studien set kz_rueck_beur_ein=(select val(astat)
from cifx where key=400
and apnr=tmp_studien.studienstatustyp
);
delete from costage_st_studien_aggr; delete from costage_st_studien_aggr;
@ -125,7 +136,13 @@ st_studium_nr,
hssem, hssem,
primaerflag, primaerflag,
studiengang_nr, studiengang_nr,
fach_nr fach_nr,
unikey,
anfdat,
ruebeudat,
endedat,
stufrm,
kz_rueck_beur_ein
) )
select st_studium_nr, select st_studium_nr,
@ -141,7 +158,15 @@ select st_studium_nr,
primaerflag, primaerflag,
rank () over (partition by semester, st_studstamm_nr order by primaerflag desc,st_studium_nr asc) rank () over (partition by semester, st_studstamm_nr order by primaerflag desc,st_studium_nr asc)
as studiengang_nr, as studiengang_nr,
fach_nr fach_nr,
unikey,
beginn_datum as anfdat,
(case when studienstatustyp not in ('Z','X') then null::date
else gueltig_ab end) as ruebeudat,
(case when studienstatustyp in ('Z','X') then gueltig_ab
else null::date end) as endedat,
studienform_statistik_code as stufrm,
kz_rueck_beur_ein
from tmp_studien from tmp_studien
where status_historie=1; where status_historie=1;

22
src-modules/module/costage/masken/43040_felderinfo.unl

@ -1,18 +1,28 @@
43040^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^^ 43040^Studiengang-Nr.^110^0^0^140^150^1^integer^70^0^1^<<SQL>> --Freemarker template\
43041^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ <#list 1..6 as i>\
select ${i},'${i}. Studiengang' from xdummy\
<#if i_has_next> union </#if>\
</#list>\
order by 1^ ^^
43041^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester order by 1 DESC;^ ^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester where today()-(4*365) between date(semester_anfang) and date(semester_ende);^
43043^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^^^ 43043^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^^^
43044^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,druck from cifx where key=400 order by 2^^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ 43044^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,druck from cifx where key=400 order by 2^^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^
43045^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<<SQL>> select apnr, druck from cifx where key=401 order by 2^ ^ ^ 43045^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<<SQL>> select apnr, druck from cifx where key=401 order by 2^ ^ ^
43046^Weitere Tabellen^123^0^0^140^140^10^char^30^0^1^<<SQL>> \ 43046^Weitere Tabellen^123^0^0^140^140^10^char^30^0^1^<<SQL>> \
--freemarker template\ --freemarker template\
select name,string_not_null(caption) || ' - ' || name from sx_tables where name in ('costage_st_studierendenstammdaten')\ select name,string_not_null(caption) || ' - ' || name from sx_tables where name in ('costage_st_studierendenstammdaten','costage_st_studiengaenge')\
<#if <<tablestylesheet>>!='tabelle_html_datenblatt.xsl'>\ <#if <<tablestylesheet>>!='tabelle_html_datenblatt.xsl'>\
and name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<<tablestylesheet>>)) \ and name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<<tablestylesheet>>)) \
</#if>\ </#if>\
order by 2^^^ order by 2^^^
43047^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^^^^ 43047^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^^^^
43049^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ 43049^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester order by 1 DESC;;^ ^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester where today() between date(semester_anfang) and date(semester_ende);^
43050^Filter Studierende^119^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^hidden^^ 43050^Fach-Nr.^119^0^0^140^150^1^integer^20^0^1^<<SQL>> --Freemarker template\
<#list 1..10 as i>\
select ${i},'${i}. Fach' from xdummy\
<#if i_has_next> union </#if>\
</#list>\
order by 1^ ^^
43051^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<<SQL>> select apnr,beschreibung from konstanten where tid=1 or tid=2;^^^ 43051^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<<SQL>> select apnr,beschreibung from konstanten where tid=1 or tid=2;^^^
43052^Felder^125^0^0^150^190^10^char^30^0^1^<<SQL>>\ 43052^Felder^125^0^0^150^190^10^char^30^0^1^<<SQL>>\
--freemarker template\ --freemarker template\
@ -45,7 +55,7 @@ order by 2\
where hs_nr::char(10) in (select distinct unikey from costage_st_studienkennzahlen)\ where hs_nr::char(10) in (select distinct unikey from costage_st_studienkennzahlen)\
order by 2;^ ^<<SQL>> select K.hs_nr,K.name from kenn_hochschulen K, hochschulinfo H\ order by 2;^ ^<<SQL>> select K.hs_nr,K.name from kenn_hochschulen K, hochschulinfo H\
where K.hs_nr=H.hs_nr^ where K.hs_nr=H.hs_nr^
43060^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ 43060^##line##^10^0^0^100^100^1^char^5000^0^8^^^1^
43061^Abschluss^7^0^0^140^170^5^char^30^0^1^<<SQL>> SELECT \ 43061^Abschluss^7^0^0^140^170^5^char^30^0^1^<<SQL>> SELECT \
code,\ code,\
name\ name\

2
src-modules/module/costage/masken/43040_maske_system_bez.unl

@ -1 +1 @@
43040^7^ 43040^310^

12
src-modules/module/costage/masken/43040_maskeninfo.unl

@ -72,19 +72,13 @@ SELECT name,\
/* and geschlecht=<<Geschlecht>> */\ /* and geschlecht=<<Geschlecht>> */\
/* and st_studiengang_nr in (select G.st_studiengang_nr from costage_st_studiengaenge G where G.abschluss in (<<Abschluss>>)) */\ /* and st_studiengang_nr in (select G.st_studiengang_nr from costage_st_studiengaenge G where G.abschluss in (<<Abschluss>>)) */\
/* and st_studiengang_nr in (select G.st_studiengang_nr from costage_st_studiengaenge G where G.stg in (<<Fach>>)) */\ /* and st_studiengang_nr in (select G.st_studiengang_nr from costage_st_studiengaenge G where G.stg in (<<Fach>>)) */\
/* and studiengang_nr =<<Studiengang-Nr.>> */\
/* and fach_nr =<<Fach-Nr.>> */\
" />\ " />\
\ \
\ \
<#if "<<Matrikel-Nr.>>"!="">\ <#if "<<Matrikel-Nr.>>"!="">\
<#assign filter=filter+" and " + basetable + ".matrikel_nr in (<<Matrikel-Nr.>>)"?replace("'","")/>\ <#assign filter=filter+" and costage_st_studien_aggr.matrikelnummer in (<<Matrikel-Nr.>>)"?replace("'","")/>\
</#if>\
<#if "<<Köpfe oder Fälle ?>>"?index_of("S.gewichtung_id=")!=-1>\
<#assign filter=filter+" and "+.vars["Köpfe oder Fälle ?"]?replace('S.','sos_stud_gewichtung.')/>\
<#if "<<Weitere Tabellen>>"?index_of("dim_studiengang_gew")&gt;-1>\
<#assign filter=filter+" and (dim_studiengang_gew.gewichtid is null or "+.vars["Köpfe oder Fälle ?"]?replace('S.','dim_studiengang_gew.')?replace("gewichtung_id","gewichtid")+")"/>\
</#if>\
<#elseif "<<Köpfe oder Fälle ?>>"!="">\
<#assign filter=filter+" and "+.vars["Köpfe oder Fälle ?"]/>\
</#if>\ </#if>\
\ \
/* <#assign filter = filter + " and st_studstamm_nr in (select st_studstamm_nr from costage_st_studierendenstammdaten where '' || ca12_staat in "+Staatsangehörigkeit.allNeededKeysList /> ) --<<Staatsangehörigkeit>> */\ /* <#assign filter = filter + " and st_studstamm_nr in (select st_studstamm_nr from costage_st_studierendenstammdaten where '' || ca12_staat in "+Staatsangehörigkeit.allNeededKeysList /> ) --<<Staatsangehörigkeit>> */\

2
src-modules/module/costage/masken/43040_sachgeb_maske_bez.unl

@ -1 +1 @@
16^43040^ 310^43040^

28
src-modules/module/costage/schluesseltabellen/cifx_fuellen.sql

@ -3,7 +3,8 @@
<#assign dimensions = [ <#assign dimensions = [
{"key":"400", "name":"Statustyp (CO)"}, {"key":"400", "name":"Statustyp (CO)"},
{"key":"401", "name":"Hörerstatus (CO)"} {"key":"401", "name":"Hörerstatus (CO)"},
{"key":"30", "name":"Studienfächer"}
] /> ] />
<#assign dimension_levels_man = [ <#assign dimension_levels_man = [
@ -21,8 +22,17 @@
] /> ] />
<#assign dimension_levels_dynamic = [ <#assign dimension_levels_dynamic = [
{"key":"401","apnr":"hoererstatus_kb", "druck":"hoererstatus_name", "astat":"", "srctable":"costage_st_hoererstatus"} {"key":"401","apnr":"hoererstatus_kb", "druck":"hoererstatus_name", "astat":"", "srctable":"costage_st_hoererstatus", "astat":"", "hs":"", "struktur_c":""},
] /> {"key":"30","apnr":"skz_key", "druck":"skz_name", "srctable":"costage_st_studienkennzahlen",
"astat":"(select distinct F.statistik_code from costage_st_studienfaecher F where F.st_stdfach_nr=costage_st_studienkennzahlen.st_stdfach_nr)",
"struktur_c":"fakultaet_key",
"hs":"val(unikey)"},
{"key":"35","apnr":"code", "druck":"name", "srctable":"costage_st_abschlussziele_lokal",
"astat":"(select distinct F.statistik_code from costage_st_abschlussziele_amtstat F where F.st_absz_amtstat_nr=costage_st_abschlussziele_lokal.costage_st_abschlussziele_lokal)",
"struktur_c":"(select A.kurzbezeichnung from costage_st_studienarten A where A.st_std_art_nr=costage_st_abschlussziele_lokal.st_std_art_nr)",
"hs":""}
] />
create temp table tmp_cifx create temp table tmp_cifx
(tid serial, (tid serial,
@ -125,7 +135,11 @@ lid ,
) )
select distinct select distinct
${dimension_level.key} , ${dimension_level.key} ,
0 as hs, <#if dimension_level.hs=="">
0
<#else>
${dimension_level.hs}
</#if> as hs,
${dimension_level.apnr} , ${dimension_level.apnr} ,
substring(${dimension_level.druck} from 1 for 10) as kurz , substring(${dimension_level.druck} from 1 for 10) as kurz ,
substring(${dimension_level.druck} from 1 for 200) as druck, substring(${dimension_level.druck} from 1 for 200) as druck,
@ -143,7 +157,11 @@ lid ,
${dimension_level.apnr} as lid , ${dimension_level.apnr} as lid ,
--parent_lid, --parent_lid,
NULL::char(10) as hiskey_id , NULL::char(10) as hiskey_id ,
NULL::char(10) as struktur_c <#if dimension_level.struktur_c=="">
NULL::char(10)
<#else>
${dimension_level.struktur_c}
</#if> as struktur_c
from ${dimension_level.srctable} from ${dimension_level.srctable}
; ;
</#if> </#if>

7
src-modules/module/costage/schluesseltabellen/semester_bereinigen.sql

@ -1,4 +1,9 @@
--unnötige Zeilen in Semestertabelle entfernen: --unnötige Zeilen in Semestertabelle entfernen:
delete from costage_st_semester where semester_tid not in ( delete from costage_st_semester where semester_tid not in (
select distinct semester from costage_st_studien_aggr); select distinct semester from costage_st_studien_aggr)
--aktuelles und Semester+1 ist immer drin:
and not(today() between date(semester_anfang) and date(semester_ende))
and not(today()+185 between date(semester_anfang) and date(semester_ende))
;

9
src-modules/module/costage/schluesseltabellen/trans_costage_st_studiengaenge.sql

@ -40,4 +40,11 @@ update costage_st_studiengaenge set abschluss=A.code
from costage_st_abschlussziele_lokal A from costage_st_abschlussziele_lokal A
where A.st_absz_nr=costage_st_studiengaenge.st_absz_nr; where A.st_absz_nr=costage_st_studiengaenge.st_absz_nr;
-- --pversion/rsz
update costage_st_studiengaenge set pversion=P.po_stp_stp_version_kb,
rsz=P.po_regelstudienzeit
from costage_st_studien_spoversionen P
where P.stp_stp_nr=costage_st_studiengaenge.stp_stp_nr;

15199
src-modules/module/sos/rohdaten/sos_costage_unload.x

File diff suppressed because it is too large Load Diff

7208
src-modules/module/sos/rohdaten/sos_costage_unload.xml

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save