programming-examples/sql/Subqueries/4. Write a query to display all the orders which values are greater than the average order value for 10th October 2012.sql
2019-11-18 14:05:53 +01:00

7 lines
261 B
SQL

/*4. Write a query to display all the orders which values are greater than the average order value for 10th October 2012.*/
SELECT *
FROM orders
WHERE purch_amt >
(SELECT AVG(purch_amt)
FROM orders
WHERE ord_date ='10/10/2012');