I create the following table.
create table man(id integer, name varchar(20), city varchar(20), age integer)
I want to find the name of the person with maximum age.
So, I ran following query,
select name, max(age) from man group by name;
It shows name of all person in ascending order with their age. What is going wrong?