XII IP Practical Lab Activity 5
XII IP Practical Lab Activity 5
XII IP Practical Lab Activity 5
Practical 1: Consider the following table ‘Cloth’ and display name of cloth in capital letters purchased in year 2020.
CCode CName Size Colour Price DOP
Practical 2: for given table ‘Cloth’ of Practical 1, write SQL command to display number of cloths purchased each
year.
Practical 4: For table ‘Salesman’ with fieldnames sid, sname, zone, amount, Write SQL command to display all
salesman name in descending order.
practical 5: Consider table ‘Items’ and write SQL query to display average qty available for each Brand where
average qty is/are more than 50.
Icode Iname Brand Qty Rate
Practical 6: for given table ‘Items’ of Practical 5, Display minimum rate of item of ‘Patanjali’.
Practical 7: Write SQL command to display name of weekday of your date of birth.
Practical 8: Write SQL command to count number of characters in your school name.
Practical 9: Display the output of following SQL command:
SELECT RIGHT(SUBSTR(‘GATEWAY OF INDIA’,-8,5),2);
Practical 12: for the given table ‘Hospital’ write SQL command to display name all patient admitted in month of
May.
PID PNAME GENDER ADMITDATE DEPT FEES
Practical 13: For given table ‘Hospital’ in Practical 10, List and count total Male/Female patient.
Practical 14: For given string “tZydus computer education”, Write SQL command to display the position of
“education”.
Practical 15: For given table ‘Order’ display those customer nos that have more than 2 orders.
Ono Cno Ino Qty Total
1 1 1 10 100
2 2 1 10 100
3 3 2 5 60
4 4 3 10 200
5 1 2 10 120
6 5 1 10 100
7 4 3 5 100