<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://de.zeus-wiki.uni-konstanz.de/index.php?action=history&amp;feed=atom&amp;title=Script_zur_Umschl%C3%BCsselung_der_Jura-Studierenden</id>
	<title>Script zur Umschlüsselung der Jura-Studierenden - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://de.zeus-wiki.uni-konstanz.de/index.php?action=history&amp;feed=atom&amp;title=Script_zur_Umschl%C3%BCsselung_der_Jura-Studierenden"/>
	<link rel="alternate" type="text/html" href="https://de.zeus-wiki.uni-konstanz.de/index.php?title=Script_zur_Umschl%C3%BCsselung_der_Jura-Studierenden&amp;action=history"/>
	<updated>2026-06-23T15:23:01Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in ZEuS-Wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://de.zeus-wiki.uni-konstanz.de/index.php?title=Script_zur_Umschl%C3%BCsselung_der_Jura-Studierenden&amp;diff=27974&amp;oldid=prev</id>
		<title>Laura.nickel am 5. Mai 2026 um 08:05 Uhr</title>
		<link rel="alternate" type="text/html" href="https://de.zeus-wiki.uni-konstanz.de/index.php?title=Script_zur_Umschl%C3%BCsselung_der_Jura-Studierenden&amp;diff=27974&amp;oldid=prev"/>
		<updated>2026-05-05T08:05:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 5. Mai 2026, 10:05 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l141&quot;&gt;Zeile 141:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 141:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;and ep.term_year=2018 and ep.term_type_id=1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;and ep.term_year=2018 and ep.term_type_id=1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Archiv]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Laura.nickel</name></author>
	</entry>
	<entry>
		<id>https://de.zeus-wiki.uni-konstanz.de/index.php?title=Script_zur_Umschl%C3%BCsselung_der_Jura-Studierenden&amp;diff=11292&amp;oldid=prev</id>
		<title>Matthias.moebius am 12. September 2018 um 11:00 Uhr</title>
		<link rel="alternate" type="text/html" href="https://de.zeus-wiki.uni-konstanz.de/index.php?title=Script_zur_Umschl%C3%BCsselung_der_Jura-Studierenden&amp;diff=11292&amp;oldid=prev"/>
		<updated>2018-09-12T11:00:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://de.zeus-wiki.uni-konstanz.de/index.php?title=Script_zur_Umschl%C3%BCsselung_der_Jura-Studierenden&amp;amp;diff=11292&amp;amp;oldid=11187&quot;&gt;Änderungen zeigen&lt;/a&gt;</summary>
		<author><name>Matthias.moebius</name></author>
	</entry>
	<entry>
		<id>https://de.zeus-wiki.uni-konstanz.de/index.php?title=Script_zur_Umschl%C3%BCsselung_der_Jura-Studierenden&amp;diff=11187&amp;oldid=prev</id>
		<title>Matthias.moebius: Die Seite wurde neu angelegt: „ /*  * 1. Ermitteln des uniquename (z.B. &#039;96|179|-|-|H|44|1|P|V|1|&#039;) für die fraglichen Studiengänge über die Benutzeroberfläche (also einfach entsprechend…“</title>
		<link rel="alternate" type="text/html" href="https://de.zeus-wiki.uni-konstanz.de/index.php?title=Script_zur_Umschl%C3%BCsselung_der_Jura-Studierenden&amp;diff=11187&amp;oldid=prev"/>
		<updated>2018-08-31T10:34:57Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „ /*  * 1. Ermitteln des uniquename (z.B. &amp;#039;96|179|-|-|H|44|1|P|V|1|&amp;#039;) für die fraglichen Studiengänge über die Benutzeroberfläche (also einfach entsprechend…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt; /*&lt;br /&gt;
 * 1. Ermitteln des uniquename (z.B. &amp;#039;96|179|-|-|H|44|1|P|V|1|&amp;#039;) für die fraglichen Studiengänge über die Benutzeroberfläche (also einfach entsprechenden Studiengang suchen und uniquename &amp;#039;rauskopieren).&lt;br /&gt;
 * Jura 20071:     08|135|-|-|H|20071|1|P|V|1|&lt;br /&gt;
 *                 08|135|-|-|H|20032|1|P|V|2|&lt;br /&gt;
 * Jura 20032:     08|135|-|-|H|20032|1|P|V|1|&lt;br /&gt;
 *                 08|135|-|-|H|20071|1|P|V|2|&lt;br /&gt;
 *                 08|135|-|-|H|20071|1|P|V|8|&lt;br /&gt;
 * Jura 2017       08|135|-|-|H|2017|1|P|V|1|&lt;br /&gt;
                   08|135|-|-|H|2017|1|P|V|2|  &lt;br /&gt;
                   08|135|-|-|H|2017|1|P|V|8|  &lt;br /&gt;
 */&lt;br /&gt;
 &lt;br /&gt;
 /*&lt;br /&gt;
 * 2. id für die Studiengänge ermitteln: select id from course_of_study where uniquename = &amp;#039;ermittelter_uniquename&amp;#039;;&lt;br /&gt;
 */&lt;br /&gt;
 @set resultset name id der Studiengänge;&lt;br /&gt;
 select id, uniquename from course_of_study where uniquename in (&amp;#039;08|135|-|-|H|2017|1|P|V|1|&amp;#039;, &amp;#039;08|135|-|-|H|2017|1|P|V|2|&amp;#039;, &amp;#039;08|135|-|-|H|2017|1|P|V|8|&amp;#039;, &amp;#039;08|135|-|-|H|20071|1|P|V|1|&amp;#039;, &amp;#039;08|135|-|-|H|20032|1|P|V|2|&amp;#039;, &amp;#039;08|135|-|-|H|20032|1|P|V|1|&amp;#039;, &amp;#039;08|135|-|-|H|20032|1|P|V|8|&amp;#039;, &amp;#039;08|135|-|-|H|20071|1|P|V|2|&amp;#039;) order by course_of_study.uniquename;&lt;br /&gt;
 select id, uniquename from course_of_study where uniquename like &amp;#039;08|135|-|-|H|20%&amp;#039; order by course_of_study.uniquename;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 @set resultset name Studierende dieser Studiengänge;&lt;br /&gt;
 select s.registrationnumber as registrationnumber, person.surname, person.firstname, dpp.studysemester as studysemester, dpp.id as degree_program_progress_id, dpp.course_of_study_id, p.term_year*10+p.term_type_id as period&lt;br /&gt;
 from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id join person on person.id=s.person_id&lt;br /&gt;
 where course_of_study_id in (2409, 2411, 2410, 2654 , 3931, 3930, 2653, 3995)&lt;br /&gt;
 and p.term_year=2018 and p.term_type_id=1 --Aktuelles Semester eintragen&lt;br /&gt;
 order by person.surname, person.firstname;&lt;br /&gt;
 &lt;br /&gt;
 /*&lt;br /&gt;
 * 3. Prüfen, wieviele Fälle betroffen sind (dies vorallem um festzustellen, ob weitere Einschränkungen nötig sind): select count(id) from degree_program_progress where course_of_study_id = id_des_alten_studiengangs&lt;br /&gt;
 */&lt;br /&gt;
 &lt;br /&gt;
 @set resultset name Anzahl Betroffene;&lt;br /&gt;
 with mtknrs as (&lt;br /&gt;
     select s.registrationnumber as registrationnumber&lt;br /&gt;
     from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id join person on person.id=s.person_id&lt;br /&gt;
     where course_of_study_id in (2409, 2411, 2410, 2654 , 3931, 3930, 2653, 3995)&lt;br /&gt;
     and p.term_year=2018 and p.term_type_id=1 --Aktuelles Semester eintragen&lt;br /&gt;
 )&lt;br /&gt;
 , joined_tables as (&lt;br /&gt;
     select s.registrationnumber as registrationnumber, dpp.studysemester as studysemester, dpp.id as degree_program_progress_id, dpp.course_of_study_id, p.term_year*10+p.term_type_id as period&lt;br /&gt;
     from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id&lt;br /&gt;
     where course_of_study_id in (2409, 2410, 2411, 2654 , 3931, 3930, 2653, 3995) &lt;br /&gt;
     and s.registrationnumber in (/* Liste der mtknrs */ select registrationnumber from mtknrs )&lt;br /&gt;
         --and p.term_year=2017 and p.term_type_id=2&lt;br /&gt;
 )&lt;br /&gt;
 , data_of_maxsem as (&lt;br /&gt;
     select registrationnumber, course_of_study_id, max(studysemester) as maxsem &lt;br /&gt;
     from joined_tables &lt;br /&gt;
     group by registrationnumber, course_of_study_id&lt;br /&gt;
 )&lt;br /&gt;
 select registrationnumber, degree_program_progress_id, course_of_study_id, studysemester, period from joined_tables jt&lt;br /&gt;
 where  1=1&lt;br /&gt;
 order by registrationnumber, period;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 /*&lt;br /&gt;
 * 4. Studiengang umschlüsseln: UPDATE degree_program_progress SET course_of_study_id = id_des_neuen_studiengangs, updated_at = now() WHERE course_of_study_id =  id_des_alten_studiengangs;&lt;br /&gt;
 *    Durch die Aktualisierung von &amp;#039;updated_at&amp;#039; wird sichergestellt, dass bei der nächsten Re-Migration die Änderung auch in der sospos-Datenbank eingetragen wird.&lt;br /&gt;
 */&lt;br /&gt;
 /*Erststudium*/&lt;br /&gt;
 update degree_program_progress set course_of_study_id = 3931, updated_at = now() WHERE course_of_study_id in (2411, 2409) and id in (with mtknrs as (select s.registrationnumber as registrationnumber&lt;br /&gt;
 from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id join person on person.id=s.person_id&lt;br /&gt;
 where course_of_study_id in (2409, 2411, 2410, 2654 , 3931, 3930, 2653, 3995)&lt;br /&gt;
 and p.term_year=2018 and p.term_type_id=1 --Aktuelles Semester eintragen&lt;br /&gt;
 ) ,joined_tables as (select s.registrationnumber as registrationnumber, dpp.studysemester as studysemester, dpp.id as degree_program_progress_id, dpp.course_of_study_id, p.term_year*10+p.term_type_id as period from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id where course_of_study_id in (2409, 2410, 2411, 2654 , 3931, 3930, 2653, 3995) &lt;br /&gt;
         and s.registrationnumber in (/* Liste der mtknrs */ select registrationnumber from mtknrs )&lt;br /&gt;
         --and p.term_year=2017 and p.term_type_id=2&lt;br /&gt;
 ), data_of_maxsem as (select registrationnumber, course_of_study_id, max(studysemester) as maxsem from joined_tables group by registrationnumber, course_of_study_id)&lt;br /&gt;
 select degree_program_progress_id from joined_tables jt&lt;br /&gt;
 where  1=1);&lt;br /&gt;
 &lt;br /&gt;
 /*Zweitstudium*/&lt;br /&gt;
 update degree_program_progress set course_of_study_id = 3930, updated_at = now() WHERE course_of_study_id in (2654, 2410) and id in (with mtknrs as (select s.registrationnumber as registrationnumber&lt;br /&gt;
 from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id join person on person.id=s.person_id&lt;br /&gt;
 where course_of_study_id in (2409, 2411, 2410, 2654 , 3931, 3930, 2653, 3995)&lt;br /&gt;
 and p.term_year=2018 and p.term_type_id=1 --Aktuelles Semester eintragen&lt;br /&gt;
 ) ,joined_tables as (select s.registrationnumber as registrationnumber, dpp.studysemester as studysemester, dpp.id as degree_program_progress_id, dpp.course_of_study_id, p.term_year*10+p.term_type_id as period from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id where course_of_study_id in (2409, 2410, 2411, 2654 , 3931, 3930, 2653, 3995) &lt;br /&gt;
         and s.registrationnumber in (/* Liste der mtknrs */ select registrationnumber from mtknrs )&lt;br /&gt;
         --and p.term_year=2017 and p.term_type_id=2&lt;br /&gt;
 ), data_of_maxsem as (select registrationnumber, course_of_study_id, max(studysemester) as maxsem from joined_tables group by registrationnumber, course_of_study_id)&lt;br /&gt;
 select degree_program_progress_id from joined_tables jt&lt;br /&gt;
 where  1=1);&lt;br /&gt;
 &lt;br /&gt;
 /*Weiterstudium*/&lt;br /&gt;
 update degree_program_progress set course_of_study_id = 3995, updated_at = now() WHERE course_of_study_id in (2653) and id in (with mtknrs as (select s.registrationnumber as registrationnumber&lt;br /&gt;
 from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id join person on person.id=s.person_id&lt;br /&gt;
 where course_of_study_id in (2409, 2411, 2410, 2654 , 3931, 3930, 2653, 3995)&lt;br /&gt;
 and p.term_year=2018 and p.term_type_id=1 --Aktuelles Semester eintragen&lt;br /&gt;
 ) ,joined_tables as (select s.registrationnumber as registrationnumber, dpp.studysemester as studysemester, dpp.id as degree_program_progress_id, dpp.course_of_study_id, p.term_year*10+p.term_type_id as period from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id where course_of_study_id in (2409, 2410, 2411, 2654 , 3931, 3930, 2653, 3995) &lt;br /&gt;
         and s.registrationnumber in (/* Liste der mtknrs */ select registrationnumber from mtknrs )&lt;br /&gt;
         --and p.term_year=2017 and p.term_type_id=2&lt;br /&gt;
 ), data_of_maxsem as (select registrationnumber, course_of_study_id, max(studysemester) as maxsem from joined_tables group by registrationnumber, course_of_study_id)&lt;br /&gt;
 select degree_program_progress_id from joined_tables jt&lt;br /&gt;
 where  1=1);&lt;br /&gt;
 &lt;br /&gt;
 /*&lt;br /&gt;
 * 5. Status der 5690 usw. von BE auf BEPV ändern (k_workstatus_id von 1 auf 23 ändern)&lt;br /&gt;
 */&lt;br /&gt;
 @set resultset name BE zu BEPV;&lt;br /&gt;
 select examrelation.k_workstatus_id, * &lt;br /&gt;
 from hisinone.examrelation &lt;br /&gt;
 where id in (with mtknrs as (select s.registrationnumber as registrationnumber&lt;br /&gt;
                 from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id join person on person.id=s.person_id&lt;br /&gt;
                 where course_of_study_id in (2409, 2411, 2410, 2654 , 3931, 3930, 2653, 3995)&lt;br /&gt;
                 and p.term_year=2018 and p.term_type_id=1) --Aktuelles Semester eintragen&lt;br /&gt;
              select examplan.default_examrelation_id &lt;br /&gt;
              from hisinone.examplan &lt;br /&gt;
              where person_id in (select person_id from student WHERE student.registrationnumber in (select registrationnumber from mtknrs )) &lt;br /&gt;
              and unit_id in (select id from unit where uniquename~&amp;#039;08\\|135\\|H\\|20032\\|(1001)|(1900)|(2000)|(3000)|(4000)|(5000)|(5090)|(5190)|(5290)|(5690)|(5790)|(6190)|(6290)|(8930)|(8999)&amp;#039;));&lt;br /&gt;
 &lt;br /&gt;
 update examrelation set k_workstatus_id=(select id from hisinone.k_workstatus where uniquename=&amp;#039;BEPV&amp;#039;)&lt;br /&gt;
 where id in (with mtknrs as (select s.registrationnumber as registrationnumber&lt;br /&gt;
                 from degree_program_progress dpp join hisinone.degree_program dp on dp.id=dpp.degree_program_id join student s on s.id=dp.student_id join period p on p.id=dpp.period_id join person on person.id=s.person_id&lt;br /&gt;
                 where course_of_study_id in (2409, 2411, 2410, 2654 , 3931, 3930, 2653, 3995)&lt;br /&gt;
                 and p.term_year=2018 and p.term_type_id=1) --Aktuelles Semester eintragen&lt;br /&gt;
              select examplan.default_examrelation_id &lt;br /&gt;
              from hisinone.examplan &lt;br /&gt;
              where person_id in (select person_id from student WHERE student.registrationnumber in (select registrationnumber from mtknrs )) &lt;br /&gt;
              and unit_id in (select id from unit where uniquename~&amp;#039;08\\|135\\|H\\|20032\\|(1001)|(1900)|(2000)|(3000)|(4000)|(5000)|(5090)|(5190)|(5290)|(5690)|(5790)|(6190)|(6290)|(8930)|(8999)&amp;#039;))&lt;br /&gt;
              and k_workstatus_id in (select id from hisinone.k_workstatus where uniquename=&amp;#039;BE&amp;#039;);&lt;br /&gt;
  &lt;/div&gt;</summary>
		<author><name>Matthias.moebius</name></author>
	</entry>
</feed>