Skip to content
Advertisement

How to use join to link values from one table to another

I have two tables.

drivers name number email requests id driverassigned ….

I want to get everything from drivers table that may or may not be mentioned in requests.driverassigned. I have tried using join but it returns rows that have a match. Here is what I have so far.

I am sure there is a common solution but I don’t have enough sql knowledge to fish it out. Any Suggestions?

Advertisement

Answer

use left join

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