MySQL Forums
Forum List  »  Newbie

Re: Need help with a query
Posted by: Phillip Ward
Date: July 27, 2017 05:03AM

You need to use to use an "outer" join :

SELECT store, qty 
FROM stores s 
LEFT JOIN inventory i 
     ON   s.sid = i.sid 
     AND  i.id = ?

Regards, Phill W.

Options: ReplyQuote


Subject
Written By
Posted
July 26, 2017 08:39PM
Re: Need help with a query
July 27, 2017 05:03AM
August 02, 2017 04:27PM
August 02, 2017 11:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.