Is there any way to group by all the columns of a table without specifying the column names? Like:
select * from table group by *
He is trying find and display the duplicate rows in a table.
SELECT *, COUNT(*) AS NoOfOccurrences FROM TableName GROUP BY * HAVING COUNT(*) > 1
Do we have a simple way to accomplish this?