Schnittstelle CampusOnline (TU Graz) zu SuperX-Modul COSTAGE http://www.superx-projekt.de/doku/costage_modul/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.5 KiB

--Freemarker Template
<#if '${SQLdialect}'='Postgres' >
alter table costage_st_studienkennzahlen alter column skz_key type char(10);
alter table costage_st_studierendenstammdaten_neu alter column aufnahmedatum type varchar(255);
--alter table costage_st_studierendenstammdaten alter column geschlecht type integer using val(geschlecht);
alter table costage_bw_bewerb_hzb alter column hzb_punkte type float;
alter table costage_bw_bewerb_hzb alter column hzb_punkte_max type float;
alter table costage_leistungen alter column note_zahl type float;
alter table costage_leistungen alter column credits type float;
alter table costage_leistungen alter column semesterstunden type float;
ALTER TABLE costage_st_studierendenstammdaten
ALTER COLUMN matrikelnummer drop not null;
</#if>
--Länder Schlüssel ggf. doppelt aus sospos, daher löschen:
delete from cifx C
where key=12
and astat is not null
AND (today()>=d_akt_von AND today()<=d_akt_bis)
and 0=(select count(*) from costage_st_laender L
where L.kfz_kennzeichen=C.apnr)
and (select count(*) from costage_st_laender L2)>0 --wenn die Tab. überhaupt gefüllt ist
;
--Länder Schlüssel ggf. doppelt aus sospos, daher löschen:
delete from cifx C
where key=11
and astat is not null
AND (today()>=d_akt_von AND today()<=d_akt_bis)
and 0=(select count(*) from costage_land_subregionen L
where L.land_kfz_kennzeichen_subregion=C.apnr)
and (select count(*) from costage_land_subregionen L2)>0 --wenn die Tab. überhaupt gefüllt ist
;