Compare commits

..

No commits in common. '6f27b2cf8fbfd70d8b46a218f705191091f92a7d' and 'ec0eac698976ba8ee03e03c3379598b48803c551' have entirely different histories.

  1. 18
      src-modules/module/rpta/schluesseltabellen/rpta_column_layout_sos_stud_astat_rsz_fuellen.sql

18
src-modules/module/rpta/schluesseltabellen/rpta_column_layout_sos_stud_astat_rsz_fuellen.sql

@ -86,7 +86,7 @@ select count(*) from rpta_resultset where uniquename='sos_stud_astat'; @@ -86,7 +86,7 @@ select count(*) from rpta_resultset where uniquename='sos_stud_astat';
]
/>
---ab hier nicht mehr ändern:
---ab hier nicht mehr ändern:
CREATE temp TABLE tmp_rpta_column
(
@ -209,10 +209,7 @@ and L.uniquename='${rpta_column_layout.uniquename}' @@ -209,10 +209,7 @@ and L.uniquename='${rpta_column_layout.uniquename}'
)
;
select * into temp tmp_rpta_column2
from tmp_rpta_column T
where (resultset_id,uniquename) not in
(select resultset_id,uniquename from rpta_column);
select * into temp tmp_rpta_column2 from tmp_rpta_column ;
INSERT INTO rpta_column
(resultset_id,
@ -237,9 +234,11 @@ resultset_id, @@ -237,9 +234,11 @@ resultset_id,
is_aggregate,
description,
0 as custom
from tmp_rpta_column2;
--evtl. neuen Satz einfügen, dann alle updaten
from tmp_rpta_column
where (resultset_id,uniquename) not in
(select T.resultset_id,T.uniquename
from tmp_rpta_column2 T)
;
update rpta_column set ( caption,
srcfieldname,
@ -261,7 +260,7 @@ update rpta_column set ( caption, @@ -261,7 +260,7 @@ update rpta_column set ( caption,
where custom=0
and (resultset_id,uniquename) in
(select T.resultset_id,T.uniquename
from tmp_rpta_column T)
from tmp_rpta_column2 T)
;
drop table tmp_rpta_column2;
@ -290,3 +289,4 @@ drop table tmp_rpta_column; @@ -290,3 +289,4 @@ drop table tmp_rpta_column;
drop TABLE tmp_rpta_column_layout;

Loading…
Cancel
Save