Grade 12 Ip Practiceworksheet 18.04.2025
Grade 12 Ip Practiceworksheet 18.04.2025
2 Predict the output of the following queries based on the table CAR_SALES given above:
i. SELECT LEFT(SEGMENT,2) FROM CAR_SALES WHERE FUEL= "PETROL";
ii. SELECT (QT2-QT1)/2 "AVG SALE" FROM CAR_SALES WHERE SEGMENT= "SUV";
iii. SELECT SUM(QT1) "TOT SALE" FROM CAR_SALES WHERE FUEL= "DIESEL";
3 Write MySQL statements for the following:
i. To create a database named FOOD.
ii. To create a table named Nutrients based on the following specification:
4 Preeti manages database in a blockchain start-up. For business purposes, she created a table named
BLOCKCHAIN. Assist her by writing the following queries: