MySQL Forums
Forum List  »  InnoDB

Re: SUM DISTINCT VALUES
Posted by: William Chiquito
Date: April 05, 2008 05:05PM

Hi Zib,

Try:
SELECT SUM(dev.ordertotal) FROM (SELECT DISTINCT orderid, ordertotal FROM t3) dev;

Options: ReplyQuote


Subject
Views
Written By
Posted
21494
April 02, 2008 08:22AM
Re: SUM DISTINCT VALUES
9023
April 05, 2008 05:05PM


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.