Browse Source

Include reasons of leave in student fact table #5

COStage_0.3_Release
Daniel Quathamer 3 years ago
parent
commit
3bd33e7101
  1. 109
      src-modules/module/costage/conf/costage.xml
  2. 69
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql
  3. 20
      src-modules/module/costage/rohdaten/costage_unload.xml

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

@ -425,8 +425,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -425,8 +425,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="statustyp" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienstatus" />
<column name="hrst" type ="CHAR" size ="10" default ="" notnull ="false" description="Hörerstatus" />
<column name="semester" type ="INTEGER" size ="8" default ="" notnull ="true" description="Semester" />
<column name="fachsemester" type ="DECIMAL" size ="(38,0)" default ="" notnull ="false" description="Fachsemester" />
<column name="hssem" type ="DECIMAL" size ="(38,0)" default ="" notnull ="false" description="Hochschulsemester" />
<column name="fachsemester" type ="INTEGER" size ="4" default ="" notnull ="false" description="Fachsemester" />
<column name="hssem" type ="INTEGER" size ="4" default ="" notnull ="false" description="Hochschulsemester" />
<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="fach_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Fach (Nr.)" />
@ -436,7 +436,54 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -436,7 +436,54 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<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)" />
<column name="hzb_art" type ="CHAR" size ="2" default ="" notnull ="false" description="Art der HZB (amtlich)" />
<column name="hzb_art" type ="CHAR" size ="10" default ="" notnull ="false" description="Art der HZB (amtlich)" >
<sourcefield table="costage_bw_bewerb_hzb" name="hzb_art_stla_code" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_bw_bewerbungen.st_studstamm_nr - costage_bw_bewerbungen.nr - costage_bw_bewerb_hzb.bw_bewrbng_nr </comment>
</column>
<column name="hzb_datum" type ="DATE" size ="10" default ="" notnull ="false" description="Datum der HZB (Zeugnisdatum)" >
<sourcefield table="costage_bw_bewerb_hzb" name="zeugnisdatum" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_bw_bewerbungen.st_studstamm_nr - costage_bw_bewerbungen.nr - costage_bw_bewerb_hzb.bw_bewrbng_nr - costage_bw_bewerb_hzb.zeugnisdatum</comment>
</column>
<column name="hzb_note" type ="FLOAT" size ="10" default ="" notnull ="false" description="Note der HZB (ganzzahlig)" >
<sourcefield table="costage_bw_bewerb_hzb" name="hzb_note" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_bw_bewerbungen.st_studstamm_nr - costage_bw_bewerbungen.nr - costage_bw_bewerb_hzb.bw_bewrbng_nr - costage_bw_bewerb_hzb.hzb_note</comment>
</column>
<column name="hzb_ort" type ="INTEGER" size ="10" default ="" notnull ="false" description="Landkreis der HZB (amtlich)" >
<sourcefield table="costage_bw_bewerb_hzb" name="land_sub_r_nr" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_bw_bewerbungen.st_studstamm_nr - costage_bw_bewerbungen.nr - costage_bw_bewerb_hzb.bw_bewrbng_nr - costage_bw_bewerb_hzb.land_sub_r_nr - costage_land_subregionen.nr</comment>
</column>
<column name="hzb_staat" type ="INTEGER" size ="10" default ="" notnull ="false" description="Staat der HZB (amtlich)" >
<sourcefield table="costage_st_laender" name="statistik_code" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_bw_bewerbungen.st_studstamm_nr - costage_bw_bewerbungen.nr - costage_bw_bewerb_hzb.bw_bewrbng_nr - costage_bw_bewerb_hzb.st_land_nr - costage_st_laender.land_nr</comment>
</column>
<column name="abm_art_p" type ="CHAR" size ="10" default ="" notnull ="false" description="Art Abmeldung (personbezogen)" >
<sourcefield table="costage_st_personen_abmeldungen" name="st_abm_art_kurzbezeichung" sourcesystem="co" />
<comment>Lookup via: st_studium_nr/st_sem_nr - costage_st_personen_abmeldungen.st_studium_nr/st_sem_nr - costage_st_semester.semester_tid / costage_st_abmeldungsarten.bezug='P'</comment>
</column>
<column name="abm_art_s" type ="CHAR" size ="10" default ="" notnull ="false" description="Art Abmeldung (studienbezogen)" >
<sourcefield table="costage_st_personen_abmeldungen" name="st_abm_art_kurzbezeichung" sourcesystem="co" />
<comment>Lookup via: st_studium_nr/st_sem_nr - costage_st_personen_abmeldungen.st_studium_nr/st_sem_nr - costage_st_semester.semester_tid / costage_st_abmeldungsarten.bezug='S'</comment>
</column>
<column name="urlaub_art" type ="INTEGER" size ="10" default ="" notnull ="false" description="Art der Beurlaubung (amtlich)" >
<sourcefield table="costage_st_urlaube" name="st_urlaub_typ_nr" sourcesystem="co" />
<comment>Lookup via: st_studium_nr/st_sem_nr - costage_st_urlaube.st_studium_nr/st_sem_nr </comment>
</column>
<column name="adresse_ort_s" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Wohnsitz Landkreis (Studienadresse)" >
<sourcefield table="costage_st_adressen" name="land_kfz_kennzeichen_subregion" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_st_adressen.st_studstamm_nr - costage_st_adressen.st_adresse_typ='S' </comment>
</column>
<column name="adresse_staat_s" type ="INTEGER" size ="10" default ="" notnull ="false" description="Wohnsitz Staat (Studienadresse)" >
<sourcefield table="costage_st_adressen" name="st_land_nr" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_st_adressen.st_studstamm_nr -costage_st_adressen.st_adresse_typ='S' </comment>
</column>
<column name="adresse_ort_h" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Wohnsitz Landkreis (Heimatadresse)" >
<sourcefield table="costage_st_adressen" name="land_kfz_kennzeichen_subregion" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_st_adressen.st_studstamm_nr - costage_st_adressen.st_adresse_typ='H' </comment>
</column>
<column name="adresse_staat_h" type ="INTEGER" size ="10" default ="" notnull ="false" description="Wohnsitz Staat (Heimatadresse)" >
<sourcefield table="costage_st_adressen" name="st_land_nr" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_st_adressen.st_studstamm_nr -costage_st_adressen.st_adresse_typ='H' </comment>
</column>
<column name="summe" type ="INTEGER" size ="2" default ="" notnull ="false" description="Summe" />
</columns>
@ -907,7 +954,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -907,7 +954,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<table name="costage_st_abmeldungsarten" thema="Studierende und Gebühren" caption="Abmeldungsarten (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<columns><column name="st_abm_art_kurzbezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="true" />
<column name="name" type ="VARCHAR" size ="255" default ="" notnull ="true" />
<column name="name" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="name_lang" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="bezug" type ="VARCHAR" size ="1" default ="" notnull ="false" />
<column name="statistik_code" type ="VARCHAR" size ="2" default ="" notnull ="false" />
@ -929,7 +976,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -929,7 +976,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="st_studstamm_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="st_studium_nr" type ="INTEGER" size ="4" default ="" notnull ="false" />
<column name="st_sem_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="st_abm_art_kurzbezeichung" type ="VARCHAR" size ="255" default ="" notnull ="true" />
<column name="st_abm_art_kurzbezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="true" />
<column name="person_flag" type ="VARCHAR" size ="1" default ="" notnull ="true" />
<column name="st_studienstatus_nr" type ="INTEGER" size ="4" default ="" notnull ="false" />
</columns>
@ -995,7 +1042,23 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -995,7 +1042,23 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</rs></privileges>
</table>
<table name="costage_k_hzbart" thema="Studierende und Gebühren" caption="HZB-Arten (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<columns><column name="apnr" type ="char" size ="10" default ="" notnull ="true" />
<column name="kurztext" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="drucktext" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="langtext" type ="VARCHAR" size ="255" default ="" notnull ="false" />
</columns>
<indexes></indexes>
<primaryKeys><rs>
</rs></primaryKeys>
<foreignKeys><rs>
</rs></foreignKeys>
<importedKeys><rs>
</rs></importedKeys>
<privileges><rs>
</rs></privileges>
</table>
<views>
</views>
@ -1118,6 +1181,41 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema> @@ -1118,6 +1181,41 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
displayType="select" visibleFields="semester_bezeichnung" format="%s">
<relation-column from="semester_tid" to="semester" />
</relation>
<relation from="costage_land_subregionen" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="nr" to="hzb_ort" />
</relation>
<relation from="costage_st_laender" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="st_land_nr" to="hzb_staat" />
</relation>
<relation from="costage_hzb_art" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="apnr" to="hzb_art" />
</relation>
<relation from="costage_st_abmeldungsarten" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="st_abm_art_kurzbezeichnung" to="abm_art_p" />
</relation>
<relation from="costage_st_abmeldungsarten" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="st_abm_art_kurzbezeichnung" to="abm_art_s" />
</relation>
<relation from="costage_st_urlaubs_typen" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="st_urlaub_typ_nr" to="urlaub_art" />
</relation>
<relation from="costage_st_laender" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="st_land_nr" to="adresse_staat_s" />
</relation>
<relation from="costage_st_laender" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="st_land_nr" to="adresse_staat_h" />
</relation>
</data-integrity>
</database>
@ -1158,6 +1256,7 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema> @@ -1158,6 +1256,7 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_bw_sb_stat_vorl_zuordnung"><file path="$COSTAGE_LOAD_PFAD/unl/costage_bw_sb_stat_vorl_zuordnung.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_bw_zulassungsarten"><file path="$COSTAGE_LOAD_PFAD/unl/costage_bw_zulassungsarten.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_land_subregionen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_land_subregionen.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_k_hzbart"><file path="$COSTAGE_LOAD_PFAD/unl/costage_k_hzbart.unl"/></loadtable>
<!--<loadtable refresh="true" delimiter="^" header="false" tabname="costage_abgeltungen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_abgeltungen.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_antritte"><file path="$COSTAGE_LOAD_PFAD/unl/costage_antritte.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_gleichheitsknoten"><file path="$COSTAGE_LOAD_PFAD/unl/costage_gleichheitsknoten.unl"/></loadtable>

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

@ -347,7 +347,74 @@ cast (NULL as int) as studiengang_nr2, @@ -347,7 +347,74 @@ cast (NULL as int) as studiengang_nr2,
-- and matrikelnummer = '5847370'
where kz_rueck_beur_ein is null
;
--HZB Data:
update costage_st_studien_aggr set hzb_art=H.hzb_art_stla_code,
hzb_datum=H.zeugnisdatum,
hzb_note=H.hzb_note,
hzb_ort=H.land_sub_r_nr,
hzb_staat=H.land_nr
from costage_bw_bewerb_hzb H, costage_bw_bewerbungen BW
where BW.nr=H.bw_bewrbng_nr
and costage_st_studien_aggr.st_studstamm_nr=BW.st_studstamm_nr
;
--Abmeldungsart:
--zuerst personbezogen:
update costage_st_studien_aggr set abm_art_p=P.st_abm_art_kurzbezeichnung
from costage_st_personen_abmeldungen P, costage_st_semester S, costage_st_abmeldungsarten A
where S.st_sem_nr=P.st_sem_nr
and S.semester_tid=costage_st_studien_aggr.semester
and P.st_studium_nr=costage_st_studien_aggr.st_studium_nr
and A.st_abm_art_kurzbezeichnung=P.st_abm_art_kurzbezeichnung
and A.bezug='P'
;
--dann studienbezogen:
update costage_st_studien_aggr set abm_art_s=P.st_abm_art_kurzbezeichnung
from costage_st_personen_abmeldungen P, costage_st_semester S, costage_st_abmeldungsarten A
where S.st_sem_nr=P.st_sem_nr
and S.semester_tid=costage_st_studien_aggr.semester
and P.st_studium_nr=costage_st_studien_aggr.st_studium_nr
and A.st_abm_art_kurzbezeichnung=P.st_abm_art_kurzbezeichnung
and A.bezug='S'
;
--Beurlaubungs-Art:
update costage_st_studien_aggr set urlaub_art=U.st_urlaub_typ_nr
from costage_st_urlaube U, costage_st_semester S
where S.st_sem_nr=U.st_sem_nr
and S.semester_tid=costage_st_studien_aggr.semester
and U.st_studium_nr=costage_st_studien_aggr.st_studium_nr
;
--Wohnorte:
--zuerst Semesterwohnsitz Ort:
update costage_st_studien_aggr set adresse_ort_s=A.land_kfz_kennzeichen_subregion
from costage_st_adressen A
where A.st_studstamm_nr=costage_st_studien_aggr.st_studstamm_nr
and A.st_adresse_typ='S'
;
--dann Semesterwohnsitz Staat:
update costage_st_studien_aggr set adresse_staat_s=A.st_land_nr
from costage_st_adressen A
where A.st_studstamm_nr=costage_st_studien_aggr.st_studstamm_nr
and A.st_adresse_typ='H'
;
--dann Heimatwohnsitz Ort:
update costage_st_studien_aggr set adresse_ort_h=A.land_kfz_kennzeichen_subregion
from costage_st_adressen A
where A.st_studstamm_nr=costage_st_studien_aggr.st_studstamm_nr
and A.st_adresse_typ='H'
;
--dann Heimatwohnsitz Staat:
update costage_st_studien_aggr set adresse_staat_h=A.st_land_nr
from costage_st_adressen A
where A.st_studstamm_nr=costage_st_studien_aggr.st_studstamm_nr
and A.st_adresse_typ='H'
;
drop table tmp_studien2;
drop table tmp_primaer_msg;
drop table temp_tmp_studien2;

20
src-modules/module/costage/rohdaten/costage_unload.xml

@ -545,6 +545,7 @@ SELECT st_abm_art_kurzbezeichnung, @@ -545,6 +545,7 @@ SELECT st_abm_art_kurzbezeichnung,
bezug,
statistik_code
FROM px_st_abmeldungsarten_v
where st_abm_art_kurzbezeichnung is not null
;
]]>
</extraction-sql>
@ -585,7 +586,8 @@ FROM px_st_ersthochschulen_v @@ -585,7 +586,8 @@ FROM px_st_ersthochschulen_v
SELECT st_studstamm_nr,
st_sem_nr,
anzahl_hochschulsemester
FROM px_st_hochschulsemester_v
FROM px_st_hochschulsemester_v
where 1=0 --aktuell noch nicht nutzbar
;
]]>
@ -698,4 +700,20 @@ FROM px_leistungen_status_typen_v @@ -698,4 +700,20 @@ FROM px_leistungen_status_typen_v
]]>
</extraction-sql>
</unload-job>
<unload-job id="k_hzbart" extraction-table="" extraction-script="" transfer-unload-file="unl/costage_k_hzbart.unl" >
<comment>Provisorisch, solange k_hzbart noch nicht existiert: </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT distinct hzb_art_stla_code as apnr,
hzb_art_stla_code as kurztext,
hzb_art_stla_code as drucktext,
hzb_art_stla_code as langtext
FROM bw_bewerb_hzb_v
where hzb_art_stla_code is not null
;
]]>
</extraction-sql>
</unload-job>
</superx-unload>

Loading…
Cancel
Save