MySql Board Assignment 2022 Class XII
MySql Board Assignment 2022 Class XII
(2022-2023)
2. Consider the following table and write SQL commands for the queries for the questions
given from (a) to (e) and write the output of the SQL commands given from (f) to (h)
(b)To display the details of patients who were admitted before 2008.
(d) To list names of all male patients with their date of admission in ascending order.
(e) To list all the details having Name’s last letter is ‘n’ belongs to ENT department.
(f) Increase the charges by 5% for all the patients whose Dateofadm is before 2008.
(g) Add another column BedNo with appropriate datatype into the table HOSPITAL.
(i) Delete primary key from the table HOSPITAL (Assume yourself the field which is
primary key.)
(f) Select * from HOSPITAL where department < > “Surgery” or gender < > “F”;
Cardiology’);
(k) Select MOD (charges, DAY(Dateofadm)) FROM HOSPITAL WHERE Gender <> ‘F’;
(b) Prachi has given the following command to obtain the highest marks :
(c) State the command to display the average marks scored by students of each gender
(d) Help Ritesh to write the command to display the name of the youngest student?
4. Consider a table SALESMAN with the following data:
***********************