MySQL Forums
Forum List  »  Stored Procedures

Re: How can i use “select distinct” and have a range for my rows
Posted by: Rick James
Date: December 11, 2012 11:11PM

I don't see what DISTINCT has to do with anything.

TO_DATE('2008/03/20','YYYY/MM/DD')
-->
'2008/03/20'

Search for "pivot". It is ugly.

> (10-20 , 21-30 , 31-40)
It would be easier if you had the same number of values in each.
GROUP BY FLOOR((eee-1)/10)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How can i use “select distinct” and have a range for my rows
1181
December 11, 2012 11:11PM


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.