The document shows the creation of a Product table with fields No, Product_Name, Brand_Name, Quantity, and Price. It then inserts records for various products, runs queries to select, count, average, and find the maximum price from the table.
The document shows the creation of a Product table with fields No, Product_Name, Brand_Name, Quantity, and Price. It then inserts records for various products, runs queries to select, count, average, and find the maximum price from the table.
The document shows the creation of a Product table with fields No, Product_Name, Brand_Name, Quantity, and Price. It then inserts records for various products, runs queries to select, count, average, and find the maximum price from the table.
1. To list the Product_Name where Brand_Name is Maharaja.
mysql> select Product_Name from product where Brand_Name='Maharaja';
+---------------+ | Product_Name | +---------------+ | Mixer Grinder | | Dish Washer | +---------------+ 2 rows in set (0.00 sec) 2. To display a report Product_Name and Brand_Name and Price in descending order of Price.
mysql> select Product_Name,Brand_Name,Price from product order by Price desc;