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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with left join

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
I am trying to join 3 tables and I am having trouble getting it to show values in 1 options row, it shows null values instead for the 3 rows it draws.


Code:
SELECT sh.sid, sh.sorderid, sh.sproductid, sh.soptionid, prod.pid, prod.pname, prod.pinventory, prod.pinventoryunlimited, opt.opid, opt.oinventory, opt.oinventory, opt.ouinventory 
FROM shopping sh 
LEFT JOIN products prod on sh.sproductid=prod.pid 
LEFT JOIN options opt on sh.soptionid=opt.opid


Regards,

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top