Amdocs Interview Question

Mysql queries for join tables