name
Query the number of occurrences of the same content in a database table attribute , and sort them from large to small.
SELECT name, COUNT(*) AS count
FROM your_table
GROUP BY name
ORDER BY count DESC;
Example
select project_id, COUNT(*) AS count
from app_ads_positions
group by project_id
order by count DESC;
operation result: