The code for GroupByVsDistince.sql is: SELECT state FROM customers GROUP BY state; SELECT DISTINCT state FROM customers;