I am trying to select all the duplicated row in my database. I have table below:
title content
aa hahaha
bb weeeee
cc dddddd
aa ggggg
aa ggggggee
dd hhhhhhh
bb ggggggg
my query is
select count(post_title) as total, content from post group by post_title
it will only show
total content
3 hahaha
2 weeeeee
but i want to show something like
total content
aa hahaha
aa ggggg
aa ggggggee
bb weeeeeee
bb geeeeeee
not sure what to do and I think it might be simple. Thanks for the help.