SQL Interview
SQL Interview
1-Find the top 5 customers with the highest average order value in the
last quarter.
2-Identify customers who have made purchases in consecutive months.
3- Calculate the month-over-month growth rate of sales revenue.
4- Identify duplicate records in a table and remove them.
5- Find nth Highest Salary.
6- Find the employee who have salary more than his manager.
7- Find the customers who have placed orders in both 2022 and 2023.
8-Calculate the running total of sales for each product category.
9- Retrieve the first order date for each customer.
10- List all customers who have made more than 3 orders.
11- Find the customers who have the same last name.
12- Create a query to find the top 3 products in each category by sales.