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.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
16 views
Program 10
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;