Fehler #410 » delete_empty_shipto_cvars_ignored.sql
1 |
DELETE FROM shipto |
---|---|
2 |
WHERE shiptoname = '' AND shiptodepartment_1 = '' AND shiptodepartment_2 = '' |
3 |
AND shiptostreet = '' AND shiptozipcode = '' AND shiptocity = '' |
4 |
AND shiptocountry = '' AND shiptocontact = '' AND shiptophone = '' |
5 |
AND shiptofax = '' AND shiptoemail = '' AND shiptogln = '' |
6 |
AND module != 'CT' |
7 |
AND NOT EXISTS ( SELECT id FROM oe WHERE oe.shipto_id = shipto.shipto_id |
8 |
UNION SELECT id FROM delivery_orders WHERE delivery_orders.shipto_id = shipto.shipto_id |
9 |
UNION SELECT id FROM ar WHERE ar.shipto_id = shipto.shipto_id); |
10 |
|
11 |
-- CVars ignored!
|