Persistent Systems Interview Question

sql queries and joins and programs