MySQL Forums
Forum List  »  Newbie

Re: Adding Segments in Table
Posted by: Eric Seidman
Date: May 07, 2009 12:15PM

Well, see the thing is I'm trying to sum essentially Column A where Column B is between X and X+9, so how would I alter that?

The syntax I have found is more along the lines of

SUM(IF(COLUMN A=value)) AS COLUMN VALUE

I'm looking to do a sum of Column A with conditions on column b. Any ideas?

Options: ReplyQuote


Subject
Written By
Posted
May 07, 2009 10:47AM
Re: Adding Segments in Table
May 07, 2009 12:15PM


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.