return records even if rows are not contained in linked table

Hi, I am thinking this is a pretty easy question.

I have a table called tblparents

I have a table called tblchildren

The field that links tblparents to tblchildren is household.

I need to return all of the records in tblparents even if no children exist in tblchildren.  Right now when I run the query I only get results in tblparents where rows exist in tblchildren.

Help is greatly appreciated!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Data DudeCommented:
Use LEFT JOIN to ensure that all rows are included in the return set from the object to the left of LEFT.
SELECT p.*, c.whatever
FROM tblParents p
   LEFT JOIN tblchildren c ON p.household = c.household

Open in new window

Note this will return more than one row if a given parent has more than one children.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim HornMicrosoft SQL Server Data DudeCommented:
As an aside, to view some pretty pictures that will help you understand the different joins, go to and search for 'SQL Join Types'.  There's many good pictorals out there, and my grabbing one and posting it here would violate copyrights.
Vitor MontalvãoMSSQL Senior EngineerCommented:
Hi jwebster77.
Do you need more help on this question? I think Jim's gave a very good answer but let us know if something still missing.
awking00Information Technology SpecialistCommented:
Can you post the query you're running that doesn't get all of the parents?
jwebster77Author Commented:
Thank you to Jim!  Great Advice, Great Link!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.