U kunt dit gebruiken:
SELECT COUNT(*) FROM (SELECT DISTINCT column_name FROM table_name) AS temp;
Dit is veel sneller dan:
COUNT(DISTINCT column_name)
U kunt dit gebruiken:
SELECT COUNT(*) FROM (SELECT DISTINCT column_name FROM table_name) AS temp;
Dit is veel sneller dan:
COUNT(DISTINCT column_name)