TABLEA
JobCode Job1 Job2 Job3 zip ------- ---- ---- ---- ---------- F F S NULL 90030 F F S NULL 90031 F F S NULL 90031 F
SELECT JobCode, Job1, Job2, Job3, order_jobs.zip FROM jobs JOIN (SELECT zip, COUNT(*) AS zipcount FROM jobs GROUP BY zip) ordering ON jobs.zip = ordering.zip ORDER BY zipcount DESC