NEHA PRASANTH - Exercise-Aggregate Functions in SQL
NEHA PRASANTH - Exercise-Aggregate Functions in SQL
Exercise 1
Sl no. Questions
I
Table : INVENTORY
Table: EMPLOYEE
Table: CUSTOMER
Table :SALE
1 Calculate GST as 12% of Price and display the result after rounding it
off to one decimal place.
Ans Select round(0.12*Price,1) as GST from INVENTORY
2 Add a new column FinalPrice to the table inventory, which will have the
value as sum of Price and 12% of the GST