delete BCK from BCK_BUCHUNGEN BCK where Exists(select BUFINR,BUPENR,BUTAG from BUCHUNGEN BU where BU.BUFINR = BCK.BUFINR and BU.BUPENR = BCK.BUPENR and BU.BUTAG = BCK.BUTAG)
delete BCK from BCK_BUZEITEN BCK where Exists(select BZFINR,BZPENR,BZTAG,BZLNR from BUZEITEN BZ where BZ.BZFINR = BCK.BZFINR and BZ.BZPENR = BCK.BZPENR and BZ.BZTAG = BCK.BZTAG and BZ.BZLNR = BCK.BZLNR)
delete BCK from BCK_BUPAUSEN BCK where Exists(select BPFINR,BPPENR,BPTAG,BPLNR from BUPAUSEN BP where BP.BPFINR = BCK.BPFINR and BP.BPPENR = BCK.BPPENR and BP.BPTAG = BCK.BPTAG and BP.BPLNR = BCK.BPLNR)
delete BCK from BCK_ZEITKONTENWERTE BCK where Exists(select ZWFINR,ZWPENR,ZWMON,ZWJAHR,ZWZKT from ZEITKONTENWERTE ZK where ZK.ZWFINR = BCK.ZWFINR and ZK.ZWPENR = BCK.ZWPENR and ZK.ZWMON = BCK.ZWMON and ZK.ZWJAHR = BCK.ZWJAHR and ZK.ZWZKT = BCK.ZWZKT)
public
Authored by
Alexander Herold

Angelegte Backups der BUCHUNGEN, BUZEITEN, BUPAUSEN und ZEITKONTENWERTE löschen, wenn diese bereits vorhanden sind
Please register or sign in to comment