MySQL Forums
Forum List  »  Newbie

Re: trouble with join and nested query
Posted by: laptop alias
Date: September 11, 2007 05:21PM

Some CREATE and INSERT statements would have been nice :-)

SELECT c.cartid, c.size, SUM( c.quantity ) , pl.price, pl.price * SUM( c.quantity )
FROM cart c
LEFT JOIN price_list pl ON pl.size = c.size
LEFT JOIN temp t ON t.cartid = c.cartid
WHERE t.login = 'abc'
GROUP BY c.cartid, c.size
LIMIT 0 , 30

Options: ReplyQuote


Subject
Written By
Posted
September 11, 2007 10:59AM
Re: trouble with join and nested query
September 11, 2007 05:21PM


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.