[eluser]rajneeshgobin[/eluser]
how can i write this kind of query in code igniter
basically it tells me which rows of my table has duplicates based on the selected parameters in this case role id and perm id
select roleID, permID, count(*) as NumDuplicates
from `role_perms`
group by roleID, permID
having NumDuplicates > 1