This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,9 @@
update tcs
set TOROLT = 'T', MODIFIER = 0, LASTCHANGED = GETDATE(), SERIAL += 1
--select tcs.ID, tcs.created, i.C_AZONOSITO --, *
from T_TANULOCSOPORT tcs
inner join T_OSZTALYCSOPORT ocs on ocs.ID = tcs.C_OSZTALYCSOPORTID and ocs.TOROLT = 'F'
inner join T_OSZTALY o on o.ID = ocs.ID and o.TOROLT = 'F'
inner join T_INTEZMENY i on i.ID = tcs.C_INTEZMENYID and i.TOROLT = 'F'
where tcs.TOROLT = 'F'
and not exists (select 1 from T_TANULOTANUGYIADATOK where C_TANULOCSOPORTID = tcs.ID)