SQL SELECT DISTINCT with single and multi-column examples, how NULL is handled, the ORDER BY error, COUNT(DISTINCT) on two columns, and DISTINCT vs GROUP BY.