0% found this document useful (0 votes)
3 views1 page

Grade 12 Ip Practiceworksheet 18.04.2025

The document is a practice worksheet for Grade 12 Informatics Practices focusing on SQL queries related to a CAR_SALES table. It includes tasks such as displaying average sales, predicting query outputs, writing MySQL statements for database and table creation, and assisting with queries for a BLOCKCHAIN table. The worksheet is designed to enhance students' understanding of SQL and database management.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Grade 12 Ip Practiceworksheet 18.04.2025

The document is a practice worksheet for Grade 12 Informatics Practices focusing on SQL queries related to a CAR_SALES table. It includes tasks such as displaying average sales, predicting query outputs, writing MySQL statements for database and table creation, and assisting with queries for a BLOCKCHAIN table. The worksheet is designed to enhance students' understanding of SQL and database management.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

INFORMATICS PRACTICES (065)

GRADE 12 – PRACTICE WORKSHEET


S.NO QUESTIONS
1 Based on the SQL table CAR_SALES, write suitable queries for the following:

1. Display fuel wise average sales in the first quarter.


2. Display segment wise highest sales in the second quarter.
3. Display the records in the descending order of sales in the second quarter.

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:

i. Write a query to display the year of oldest transaction.


ii. Write a query to display the month of most recent transaction.
iii. Write a query to display all the transactions done in the month of May.
iv. Write a query to count total number of transactions in the year 2022.

You might also like