SQL Questions
SQL Questions
7. How can you write a query that sums the total sales
but treats null values as zero?
22. Given a sales table, how do you find the top 3 sales
representatives based on total sales?
23. How would you find customers who’ve bought all products
in a given product list?
26. How can you identify orders that have been shipped but
not yet billed?
32. How would you retrieve the order with the maximum
amount for each customer?
34. How do you retrieve the last three months’ average sales
per day?
35. How do you select all employees with higher salaries than
their department average
36. find employee whose salary is greater than avg salary in a dept.
---------------------------------------------------------------
advanced:
------------------------------------------------------------
theory
cardinality