Subex Interview Question

SQL basics, Programs to write.