what is the sql query to find the duplicate records and display in descending, based on the highest count and the id display the records.
for example:
gettin
You can't do it as a simple single query, but this would do:
select title from kmovies where title in ( select title from kmovies group by title order by cnt desc having count(title) > 1 )