List Products with Prices Higher Than Average
Products Table:

Query Explanation:
SELECT AVG(UnitPrice) FROM Products: Gets the average product price.
UnitPrice > (...): Filters only products priced above that average.
ORDER BY UnitPrice DESC: Sorts from highest to lowest price.
SQL Query:
SELECT
ProductID,
ProductName,
UnitPrice
FROM
Products
WHERE
UnitPrice > (SELECT AVG(UnitPrice) FROM Products)
ORDER BY
UnitPrice DESC;
Output:

