Tables:
- users: id, name
- usersFacebookFriends: id, uid, friendUid, name
I need a query to search for friends (name), and check if they exists in the users table, so then they are also on the website registered.
Is this possible with a left join, and if so how?
Thanks.
I guess this should make a job. If facebook friend is not registered with your site corrsponding joined User table fields will be NULL.
Change
LEFT JOINtoINNER JOINif you need to find only those who exist.