sql select rows with simlar names code example
Example: sql select rows with simlar names
select name, COUNT(*) as count
from (
select distinct id, name
from mytable) as sq
group by name
select name, COUNT(*) as count
from (
select distinct id, name
from mytable) as sq
group by name