Welcome Back

Google icon Sign in with Google
OR
I agree to abide by Pharmadaily Terms of Service and its Privacy Policy

Create Account

Google icon Sign up with Google
OR
By signing up, you agree to our Terms of Service and Privacy Policy
Instagram
youtube
Facebook

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: