EasyBasic SELECT
List all unique countries from customers
The query
SQL
SELECT DISTINCT country
FROM customers
WHERE country IS NOT NULL
ORDER BY country;Note
“Always filter out NULLs when getting distinct values for cleaner results.
SELECT DISTINCT country
FROM customers
WHERE country IS NOT NULL
ORDER BY country;Note
“Always filter out NULLs when getting distinct values for cleaner results.