K
K
khodos_dmitry2018-06-15 13:58:03
MySQL
khodos_dmitry, 2018-06-15 13:58:03

How to correctly select all unique BINARY values ​​and sort them by number of occurrences?

SELECT BINARY `name` as bname, COUNT(*) FROM `param` GROUP BY BINARY `name` ORDER BY COUNT(*) DESC

such a request is taking too long. Is there a way to speed it up?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question