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
select distinct title, ( select count(title) from kmovies as sub where sub.title=kmovies.title) as cnt from kmovies group by title order by cnt desc