MySQL Forums
Forum List  »  General

Re: How can I get a sum from specific fields in where clause?
Date: April 11, 2022 07:45AM

I'm not sure what you're looking for.
So far, I've concluded that what I'm trying to do can't reasonably be done and scratched it from the filter.

SUM(answer) = the sum of the field answer GROUP BY SrvID.
We filter by QID and determine if the highest sum for any MX within QID is >= GivenValue.

For me this is pretty complex but writing a temp table is difficult.

Options: ReplyQuote

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.