If I have three columns:
orderNumber, name, email
and I would like to count how many unique emails are in the table how would I go about do
SELECT count(DISTINCT(email)) FROM orders
its different from your posting, since its filters out the duplicates before counting it