XII IP Practical 2023 Lab Activity 4
XII IP Practical 2023 Lab Activity 4
Practical 1: Study following table ‘Inventory’ and write SQL command to display the name of the costliest
car with fuel type ‘Petrol’. (NCERT Textbook)
CardID CarName Price Model Yearmanufacture Fueltype Discount
Practical 2: Write SQL command to calculate the average discount and total discount available on Car4.
(Refer table ‘Inventory of Practical 1)[NCERT Textbook]
Practical 3: list the total no of cars having no discount. (Refer table ‘Inventory of Practical 1)*NCERT
Textbook]
Practical 4: Write SQL command to find the highest price for each Car. (Refer table ‘Inventory of Practical
1)[NCERT Textbook]
Practical 5: for the given table ‘Inventory’ in practical 1 arrange and display all records in ascending order
of year of manufacturing.
S1 10
S2 30
S3 NULL
S4 40
S5 30
Practical 11: Consider the following table ‘Library’ and list all books with their date of purchase (DOP) in
decreasing order.
No Title Author Type DOP Qty price
Practical 12: Give the output of SQL Command : (Refer Library table of Practical 11) SELECT
MOD(Qty/Price) FROM Library WHERE Author = ‘Dixit’;
Practical 13: Consider ‘Library’ table given in Practical 10 and Count and display all books which Rate is
greater than equal to 200.
Practical 15: For given table ‘Stock’ Suraj has written following SQL Command to display most expensive
Item Brandwise:
SELECT Iname, Brand, MAX(Rate) FROM Stock;