There is a table with a source id column. You need to calculate the number of duplicate columns and display their number with the source_id example.
source_id 123 111 123 112 111 123 вывод source_id 123 count 3 source_id 111 count 2 source_id 112 count 1
how can I bring this to mysql? I will be grateful for any help
select source_id, count(1) from table group by source_id
- Mike