MySQL Forums
Forum List  »  Newbie

Re: Count/sort unique values
Posted by: Rick James
Date: May 27, 2016 11:19PM

Where does "TotalEach" come from? Given that, simply add ORDER BY TotalEach DESC.

Is BlockedOn a pair of numbers separated by a comma? Don't do that; it is messy to split that string and convert to numeric to do the arithmetic. Put them in two columns. Then the task is much simpler.

Options: ReplyQuote


Subject
Written By
Posted
May 24, 2016 06:51AM
Re: Count/sort unique values
May 27, 2016 11:19PM


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.