Instagram
youtube
Facebook
Twitter

Retrieve Top 5 Most Expensive Products in SQL

Retrieve Top 5 Most Expensive Products in SQL

Query Explanation:

● SELECT *: Selects all columns from the Products table.

● ORDER BY UnitPrice DESC: Sorts the products by UnitPrice in descending order (highest price first).

● LIMIT 5: Limits the result to the top 5 products.

SQL Query:

USE SalesInventoryDB;

SELECT *  
FROM Products  
ORDER BY UnitPrice DESC  
LIMIT 5;

 

Output: