Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
SELECT name_colmn, COUNT(*) AS amount FROM table_name GROUP BY name_colmn ORDER BY amount DESC LIMIT 1;
SELECT name_colmn,name_colmn2 COUNT(*) AS amount FROM table_name GROUP BY name_colmn,name_colmn2 ORDER BY amount DESC LIMIT 1;
SELECT name_column1, name_column2, COUNT(name_column1) AS amount1, COUNT(name_column2) as amount2 FROM table_name GROUP BY name_column1,name_column2 ORDER BY amount1 DESC LIMIT 1