I have the a postgre sql query as follows
SELECT cNo,max(numLogs),name,surname FROM details GROUP BY cNo,name,surname
and if I run this my results don't group cNo instead, is there any way I can get the cNo unique/grouped.
I get the results similar to the following
cNo numLogs name surname
23 43 asfas safdasd
23 45 dsfds fdsfsdfsd
23 43 dsfsd dsfsdfsd
and I want something like
cNo numLogs name surname
23 45 asfas safdasd