Code:
DELETE FROM listings WHERE companyid IN
(SELECT companyid FROM listings WHERE subid = '12'
INTERSECT SELECT companyid FROM listings WHERE subid = '13')
AND subid = '13'
Is the query I have going so far but it doesn't do exactly what I want it to do.
What I am looking for is, any companyid that is in 13 but not in 12 to be put into 12.
Any help would be appreciated.  Thanks.
__________________
"Good News Everyone, by reading this your hearing my voice."
|