Du kan bruge dette:
SELECT COUNT(*) FROM (SELECT DISTINCT column_name FROM table_name) AS temp;
Dette er meget hurtigere end:
COUNT(DISTINCT column_name)
Du kan bruge dette:
SELECT COUNT(*) FROM (SELECT DISTINCT column_name FROM table_name) AS temp;
Dette er meget hurtigere end:
COUNT(DISTINCT column_name)