MySQL Forums
Forum List  »  Newbie

Re: SQL join problems
Posted by: Steve Penney
Date: February 10, 2018 10:15PM

I Got it!

SELECT tblForSaleItems.ID, tblForSaleItems.Title, tblForSaleItems.productDesc, tblForSaleItems.Cost, T2.imagePath, T2.PrimaryImage
FROM tblForSaleItems
LEFT JOIN
(SELECT * from tblForSaleImages where PrimaryImage = 1) as T2
on tblForSaleItems.id = T2.FK_ForSaleItems

Thanks for your help.

Options: ReplyQuote


Subject
Written By
Posted
February 10, 2018 08:43PM
February 10, 2018 08:58PM
February 10, 2018 10:06PM
Re: SQL join problems
February 10, 2018 10:15PM
February 10, 2018 10:30PM


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.