DELETE FROM LD0P0V12 WHERE EXISTS (SELECT * FROM LD0P0V11 V11 WHERE V11.LONGTEXT=LD0P0V12.LONGTEXT 
	AND EXISTS (SELECT * FROM LD0P0V10 V10 WHERE DYNDELSYS IN (6,9) AND V10.SVARNR=V11.SVARNR))
;
DELETE FROM LD0P0V11 WHERE EXISTS (SELECT * FROM LD0P0V10 V10 WHERE DYNDELSYS IN (6,9) AND V10.SVARNR=LD0P0V11.SVARNR)
;
DELETE FROM LD0P0V10 WHERE DYNDELSYS IN (6,9)
;
DELETE FROM LD0P0V09 WHERE DYNDELSYS IN (6,9)
;
DELETE FROM LD0P0B01 WHERE HTYP IN(870,890)
;
DELETE FROM LD0P0V53 WHERE DYNDELSYS IN (6,9)
;
DELETE FROM LD0P0V55 WHERE DYNDELSYS IN (6,9)
;
DELETE FROM LD0P0V49
;
DELETE FROM LD0P0V50
;
DELETE FROM LD0P0V51
;
DELETE FROM LD0P0V52
;
DELETE FROM LD0P0V56
;
UPDATE LD0P0Q01 SET XNUM1=0, XNUM4=0 WHERE KODTYP='AKTTYP'
;