programming-examples/sql/RetrieveFromTables/Write a SQL query to find the name and price of the cheapest item.sql

5 lines
191 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a SQL query to find the name and price of the cheapest item.*/
SELECT pro_name, pro_price
FROM item_mast
WHERE pro_price =
(SELECT MIN(pro_price) FROM item_mast);