SQL - GROUP BY and HAVING
You have a table
Visits with columns UserID and VisitDate. Some UserID values are NULL. You want to count visits per user, treating NULL users as 'Guest'. Which query achieves this?