|
|
|
@ -598,12 +598,14 @@ and T.sourcesystem=${Quellsystem_var} \
@@ -598,12 +598,14 @@ and T.sourcesystem=${Quellsystem_var} \
|
|
|
|
|
update tmp_cifx2 set apnr=(select min(apnr) from cifx T\ |
|
|
|
|
where T.uniquename=tmp_cifx2.uniquename\ |
|
|
|
|
and T.key=tmp_cifx2.key\ |
|
|
|
|
and T.sourcesystem !=tmp_cifx2.sourcesystem\ |
|
|
|
|
and today() between T.d_akt_von and T.d_akt_bis\ |
|
|
|
|
)\ |
|
|
|
|
where apnr is null \ |
|
|
|
|
and 0 < (select count(*) from cifx T\ |
|
|
|
|
where T.uniquename=tmp_cifx2.uniquename\ |
|
|
|
|
and T.key=tmp_cifx2.key\ |
|
|
|
|
and T.sourcesystem !=tmp_cifx2.sourcesystem\ |
|
|
|
|
and today() between T.d_akt_von and T.d_akt_bis\ |
|
|
|
|
)\ |
|
|
|
|
;\ |
|
|
|
@ -1150,12 +1152,14 @@ and T.sourcesystem=${Quellsystem_var} \
@@ -1150,12 +1152,14 @@ and T.sourcesystem=${Quellsystem_var} \
|
|
|
|
|
update tmp_cifx2 set apnr=(select min(apnr) from cifx T\ |
|
|
|
|
where T.uniquename=tmp_cifx2.uniquename\ |
|
|
|
|
and T.key=tmp_cifx2.key\ |
|
|
|
|
and T.sourcesystem !=tmp_cifx2.sourcesystem\ |
|
|
|
|
and today() between T.d_akt_von and T.d_akt_bis\ |
|
|
|
|
)\ |
|
|
|
|
where apnr is null \ |
|
|
|
|
and 0 < (select count(*) from cifx T\ |
|
|
|
|
where T.uniquename=tmp_cifx2.uniquename\ |
|
|
|
|
and T.key=tmp_cifx2.key\ |
|
|
|
|
and T.sourcesystem !=tmp_cifx2.sourcesystem\ |
|
|
|
|
and today() between T.d_akt_von and T.d_akt_bis\ |
|
|
|
|
)\ |
|
|
|
|
;\ |
|
|
|
|