A B C 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 3 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6
I am to output only the distinct rows without using
the DISTINCT keyword does what you want. I.e., if the name of your table is A, select distinct * from A will do the trick.
select distinct * from A
Cf. mysql manual: http://dev.mysql.com/doc/refman/5.0/en/select.html