Skip to content
Advertisement

Select if exists in another table, with AND condition

I haven’t found the answer to my question specifically even though there are very similar subjects on the same matter.

Here is my database (MySQL) :

I wish to select links where their SOURCE and TARGET exists in the urls table.

I’m guessing subqueries or left join will be the answer, but I can’t seem to get it working.

Advertisement

Answer

IF you mean both target and source in the same links row have to exists in urls 2 inner joins for example

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement