EasyBasic SELECT
Select first 5 products by price descending
The query
SQL
SELECT product_id, name, price, stock
FROM products
ORDER BY price DESC
LIMIT 5;Note
“Combine ORDER BY and LIMIT to get top-N results.
SELECT product_id, name, price, stock
FROM products
ORDER BY price DESC
LIMIT 5;Note
“Combine ORDER BY and LIMIT to get top-N results.