Using SQL to examine potential outliers