
SQL questions to prepare for interview.
Posted by Remobs • 9 months ago
Question: Write a query to calculate the cumulative percentage of sales by product category.
Question: Generate a report that lists the top 5 products by revenue for each quarter over the past 3 years.
Question: Write a recursive query to find the hierarchical path from the CEO to each employee in an organization.
Question: Create a query to identify anomalies in monthly expenditure across departments.
Question: Write a query to perform a full outer join on two tables and then filter the results to show only mismatched records.
Question: Construct a query to dynamically pivot data where the columns are derived from a subquery.
Question: Write a query to calculate the moving average of sales for the past 6 months for each product.
Question: Generate a query to compare the sales performance of products before and after a specific marketing campaign.
Question: Write a query to rank employees by their performance score within each department, resetting the rank for each new department.
Question: Create a query to find gaps in a series of dates for a given employee’s attendance records.
Looking for remote jobs? – Click Here