Answer the question
In order to leave comments, you need to log in
How to group and then sort in MySQL?
There is a table with products, the table has a column manufacturer, you need to group
SELECT manufacturer FROM items GROUP BY manufacturer ORDER BY manufacturer DESC
SELECT * FROM (SELECT manufacturer FROM tech_catalog_catalog1_items GROUP BY manufacturer) a ORDER BY a.manufacturer DESC
Answer the question
In order to leave comments, you need to log in
Base, table, field encoding? Sorting is in the order specified in the encoding.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question