SELECT a.ID, a.title FROM supermag.sabanks a WHERE a.ID NOT IN (SELECT a.bankid FROM supermag.smclientbanks a);
SELECT a.ID, a.title FROM supermag.sabanks a WHERE a.ID NOT IN (SELECT a.bankid FROM supermag.smclientbanks a);
DELETE FROM supermag.sabanks a WHERE a.ID NOT IN (SELECT a.bankid FROM supermag.smclientbanks a);
DELETE FROM supermag.sabanks a WHERE a.ID NOT IN (SELECT a.bankid FROM supermag.smclientbanks a);
DELETE FROM supermag.sabanks a WHERE a.ID NOT IN (SELECT a.bankid FROM supermag.smclientbanks a);