Part 3: Database Query
using MySQL
12. To join product and company and display in the tabular form like – <pname>
manufactured by <company>
Convert all product name into capital
Display the cube of products quantity for more than or 100 in quantity.
Di
vide the price by 3 and display the result with 1 fraction digit for the price of more than
40,000.
Display pname (last four letters only), qty, price with 2 decimal points and company for price
in between 30000 to 80000.
Display maximum price of products
Display the total quantities of all products
Display the average price of LED TV and Apple products
Find the difference between maximum price and minimum price from the table.
Display unique Products from the table.
Count the unique company from products.
Display the product number, product name and company in the descending order of their
price.
Display product minimum price for each company.
Display product number and product names in their ascending order of names.
Display maximum price of products manufactured by apple.