I have 2 tables...
Table1: ID, Name, Country Table2: ID, accountID, parent table1.id = table2.acountID
My script does a search for all records with a particular parent. I want to compare those results with table1 and return all entries that wern't in the search.
eg. Table1:
1, Bill, AU 2, Charles, US 3, Clare, CA
Table2:
1, 1, Mary 2, 1, William 3, 2, Henry
Search (select * from table2 WHERE accountID='1') returns:
1, 1, Mary 2, 1, William
and I want to get this results (from table1):
2, Charles, US 3, Clare, CA