athenahealth Interview Question

SQL questions on joins , queries