You need to move the WHERE
filter to the JOIN
condition:
SELECT c.Customer, c.State, e.Entry
FROM Customer c
LEFT JOIN Entry e
ON c.Customer=e.Customer
AND e.Category='D'
More Related Contents:
- SQL JOIN – WHERE clause vs. ON clause
- In SQL / MySQL, what is the difference between “ON” and “WHERE” in a join statement?
- Is a JOIN faster than a WHERE?
- INNER JOIN ON vs WHERE clause
- SQL update from one Table to another based on a ID match
- SQL JOIN: is there a difference between USING, ON or WHERE?
- Difference between JOIN and INNER JOIN
- Left Join With Where Clause
- Difference between Oracle’s plus (+) notation and ansi JOIN notation?
- SQL to LINQ with multiple join, count and left join
- What is the difference between HAVING and WHERE in SQL?
- Oracle “(+)” Operator
- JOIN two SELECT statement results
- FULL OUTER JOIN with SQLite
- Is there something wrong with joins that don’t use the JOIN keyword in SQL or MySQL?
- Mixing implicit and explicit JOINs
- SQL server ignore case in a where expression
- Record returned from function has columns concatenated
- Explain JOIN vs. LEFT JOIN and WHERE condition performance suggestion in more detail
- Difference between RIGHT & LEFT JOIN vs RIGHT & LEFT OUTER JOIN in SQL [duplicate]
- PostgreSQL JOIN with array type with array elements order, how to implement?
- How to exclude rows that don’t join with another table?
- Left Join without duplicate rows from left table
- Oracle date “Between” Query
- INNER JOIN vs multiple table names in “FROM” [duplicate]
- Is NATURAL (JOIN) considered harmful in production environment?
- Re-Writing “Fuzzy Join” Functions from R to SQL
- SQL select join: is it possible to prefix all columns as ‘prefix.*’?
- sql query joins multiple tables – too slow (8 tables)
- Procedurally transform subquery into join