XII IP Practical 2023 Sql-Lab-3
XII IP Practical 2023 Sql-Lab-3
Practical 1: Study following table ‘Doctor’ and write SQL command to display female doctor names with
remainder of Consultation and experience of department ENT or Medicine.
ID Name Dept Gender Experience Consultation
Practical 2: Consider table ‘Doctor’ of practical 1 and write SQL command to display the average
consultation charges of all doctors having more than 5 year experience.
Practical 3: Consider table ‘Doctor’ of practical 1 and display minimum consultation charge of male
doctors.
Practical 4: Write SQL command to fetch four characters of doctor name. (refer ‘Doctor’ table of Practical
1)
Practical 6: What will be output if you add trim() method in given query of practical 5 as: SELECT
trim(mid(‘Zydus computer education’,11,9));
Practical 7: Study following table ‘CLUB’ and write SQL command to display all member names and fees
after giving 12.5% discount.
Mcode Mname Age Fees Type
Practical 9: display member names in capital letters whose age not in between 25 to 30yrs. (refer table
‘Club’ of practical 7)
Practical 10: Write SQL command to display eldest member name with his/her fee from table ‘Club’ of
Practical 7.
Practical 11: Display result of SQL Command: SELECT INSTR(SUBSTR(‘Informatics Practices’,8,7), ‘o’);
Practical 12: Consider the following table ‘Stock’ and display all brands with its total quantities.
Practical 13: Write SQL command to display item name with its price of those having brandwise highest
price. (Refer table ‘Stock’ of Practical 12)
Practical 14: predict Output of given query (Refer table ‘Stock’ of practical 12):
SELECT MAX(Rate) + MIN(Rate) from Stock where Brand = ‘Patanjali’;
Practical 15: predict Output of given query (Refer table ‘Stock’ of practical 12):
SELECT avg(length(Iname)) from Stock where Iname like ‘S%’ or Qty = 20 ;