An INNER JOIN
doesn’t help here.
One way to solve this is by using a LEFT JOIN
:
SELECT w.*
FROM TABLE1 W
LEFT JOIN TABLE2 V ON W.name = V.name
WHERE ISNULL(V.name);
More Related Contents:
- What’s the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN? [duplicate]
- 1052: Column ‘id’ in field list is ambiguous
- Join tables with SUM issue in MYSQL
- Join between tables in two different databases?
- Required to join 2 tables with their FKs in a 3rd table
- How can I join multiple SQL tables using the IDs?
- Why does MySQL report a syntax error on FULL OUTER JOIN?
- Mixing ANSI 1992 JOINs and COMMAs in a query
- Cumulative sum over a set of rows in mysql
- What’s the difference between comma separated joins and join on syntax in MySQL? [duplicate]
- MySQL JOIN the most recent row only?
- MySQL Inner Join Query Multiple Tables
- Difference between these two joining table approaches?
- Laravel join with 3 Tables
- MySQL LEFT JOIN 3 tables
- how to use a like with a join in sql?
- When to use a left outer join?
- In what order are MySQL JOINs evaluated?
- How to store a one to many relation in MySQL database?
- MySQL Multiple Joins in one query?
- SQL Print the name of all Employees together with the name of their supervisor
- MySQL offset infinite rows
- Can a foreign key reference a non-unique index?
- Get the latest date from grouped MySQL data
- MySQL update a joined table
- MySQL Error 1264: out of range value for column
- Split a string and loop through values in MySQL stored procedure
- MySQL Select Query – Get only first 10 characters of a value
- Most efficient way to store IP Address in MySQL [duplicate]
- mysql select id and name from other table and join query