MySQL Forums
Forum List  »  Newbie

Re: Select SUM CASE
Posted by: Peter Brawley
Date: April 06, 2021 02:10PM

> If the SUM is less than zero, I need it to be changed to zero, otherwise use the QtyAvailable.

max( ..., 0 ) round the whole expression would do that.

Options: ReplyQuote


Subject
Written By
Posted
April 05, 2021 09:29AM
Re: Select SUM CASE
April 06, 2021 02:10PM


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.