Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
HWallays
Contributor III
Contributor III

Max and Min function on character/string data ?

Is there a function that will allow me to select the min or max of a string value ? Have the impression it only works with numerical data but does not work with strings ( in sql I use it regularely for strings too)… 

 

When applying the min or max on strings it returns blanks 😉 

Labels (4)
1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try MinString and MaxString functions.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try MinString and MaxString functions.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anil_Babu_Samineni

How is the string looks like? Can you post few rows for us

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
HWallays
Contributor III
Contributor III
Author

thank you 

I was not aware there were actually specific minstring and maxstring functions. Indeed they work perfectly !