I have a mysql table set up like this
id | refference_id | data
Is it possible to count the number of entries for each refference_id all in the query ?
I have a mysql table set up like this
id | refference_id | data
Is it possible to count the number of entries for each refference_id all in the query ?
select count(distinct refference_id) as myResult from myTable;