Let\'s say you have the following table (the column of interest here is cid):
cid
+-----+-------+-------+-------+---------------------+-------------
I know it's an old thread, the accepted solution would only retrieve me the columns that had more than one occurrence.
This worked for me:
SELECT cid, pid, rid, clink, MAX(time), snippet FROM mytable GROUP BY cid