5 Tricky SQL Queries solved - Part II

In continuation to my previous article 5 Tricky SQL Queries Solved, I took 5 more complex queries and tried explaining the approach to solve them. I am sure these queries will put your SQL skills to test. Do read to know more!