query with a join and no values

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a ITEM table and a table with a list of my employees.
I want to run a query where I can see ALL the items, and if any employees
are assigned to that item, then the employees names also.

I tried to just run a query with a join, but all I got back was ONLY the
items that had an employee associated with them. But I want to the the items
WITHOUT an employee assigned also. How can I do this?
 
you're using an INNER JOIN on your item table and employee table, as

FROM ItemTableName INNER JOIN EmployeeTableName

change the INNER JOIN to a LEFT JOIN, as in

FROM ItemTableName LEFT JOIN EmployeeTableName

the table that contains the records you want to see "all" of, should be
named first in the statement.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Update query issue 0
Show an Employee with no reviews 6
Left Join Question 2
Query Help 5
join method 3
Join Query Expression 7
Left Join? 9
Crosstab not showing null values/fields 5

Back
Top