Write a SQL query to rank shows by daily viewership across different regions
SQLmedium
2
Write a query to calculate the total revenue generated by each product category.
SQLmedium
3
Write a query to find employees in the same department as 'John'.
SQLmedium
4
Write a query to find the 5th highest salary in an employee table and calculate the number of employees whose salary is greater than that of their manager.
SQLmedium
5
Write a query to find the top 5 most-sold Adidas products in the last month.
SQLmedium
6
Write a query to get the names of all employees who are managers with five or more direct reports.
SQLmedium
7
Write a query to identify duplicate customer entries based on email and phone number.
SQLmedium
8
Write a self join query to get the manager's name for each employee.
SQLmedium
+20 More Questions with Expert Answers
Get the complete 1,800+ question library with detailed, expert-level answers covering SQL, Spark, System Design, Python, Cloud, and Behavioral topics.