Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Add comparison operators like Greatest() and Least()
Thu, Jun 20 2013 4:51 PMPermanent Link

Barry

I'd like the ability to get the greatest or least number in a parameterized list, like:

select Greatest(col1,col2,col3,col3)  / Least(col1,col2,col3,col4);

See:
http://dev.mysql.com/doc/refman/5.6/en/comparison-operators.html

Barry
Fri, Jun 21 2013 4:19 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Barry


Personally I'd prefer the ability to pass an untyped array into a function / procedure and the ability to detect type inside the function and loop round the values. Then I could write GREATEST & LEAST and a load of other stuff myself.

Roy Lambert
Fri, Jun 21 2013 1:07 PMPermanent Link

Barry

+1

When wishing, wish big. Smile

Barry
Fri, Jun 21 2013 3:36 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Barry,

<< I'd like the ability to get the greatest or least number in a
parameterized list, like:

select Greatest(col1,col2,col3,col3)  / Least(col1,col2,col3,col4); >>

Noted.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Image