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
use
SELECT count( DISTINCT(email) ) FROM orders
Distinct provide unique email ids and then simply count them.