Ben 2 tablolar var ...
Table1: ID, Name, Country Tablo2: 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
Tablo2:
1, 1, Mary 2, 1, William 3, 2, Henry
Arama döndürür (accountid = '1 'tablo2 * seçin):
1, 1, Mary 2, 1, William
ve ben bu sonuçları (tablo1) almak istiyorum:
2, Charles, US 3, Clare, CA