I have a table with accounts, id/name. And a customer vendor map table.
I'm trying to create a list of accounts that do not already exist in my customer list.
Accounts: 1,2,3,4,5,6,7,8
Customers: 2,3
If those are my accounts and customers, I want to return 1,4,5,6,7,8 to populate my dropdown.
I've tried 'JOIN account_map ON account_map.aid <> accounts.id'
But that returns many duplicates.
Any Suggestions?
I'm trying to create a list of accounts that do not already exist in my customer list.
Accounts: 1,2,3,4,5,6,7,8
Customers: 2,3
If those are my accounts and customers, I want to return 1,4,5,6,7,8 to populate my dropdown.
I've tried 'JOIN account_map ON account_map.aid <> accounts.id'
But that returns many duplicates.
Any Suggestions?