Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QUERY to display all row in two tables

Status
Not open for further replies.

ElTech

IS-IT--Management
Apr 16, 2003
22
US
How can I display all rows for vendorkey even if vendorkey is null on table vendors


select vendor.name, vendor.key, vendor.id, item.number, item.name
from dbo.vendor, dbo.item
where vendor.key = item.vendorkey

With the query above I only get data that exists on table vednor

I want to get all of the lines on dbo.item even if it does not exist on dbo.vendor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top