In case of integers, there are aggregate functions such max, min to find the high and low values in a table.
How to do the same for character type? I mean, If a column as a value repeated more than once, and I want to display that value. How to query that?
for example, I have a table programmer
and columns such as programmer, lang1, lang2which has many values in those like programmer column has abu, babu, catherine, david and lang1 column has basic, c, basic, sql and lang2 has pascal, pascal, c, cobol.
My objective is to display the maximum repeated value in lang2 column.
max()andmin()will work for character data as well. Edit your question and add some sample data (formatted text please) and the expected output based on that data.