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

Loading…
Cancel
Save