Jump to content

How to search one table then show results if not exists in another


t_machine

Recommended Posts

hi, I hope someone can help with this problem.

 

I am trying to search a table and only display results if search does not exist in another table.

For example.

Search table 1 for users with the name "test", get the id for that user then check Table 2 if that user id exists. If it does not exist then show results. I assume a good join would work or a sub query but I do not know where to begin.

 

Any help would be greatly appreciated.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.