Raju
Raju
TERESA SCHOOL
SUBJECT: INFORMATION TECHNOLOGY (402)
Class : X
Revision Database Development Assignment –III (ANSWER KEY)
Table : Teacher
3) To list names of all teachers with their date of joining in descending order.
Select Name, DOJ from Teacher Order By DOJ desc ;
4) To display teachers name, age department and salary for male teacher only
Select Name, Age, Dept, Sal from Teacher where Gender=’M’;
5) To insert a new row in the teacher table with the following data:
9,”raja”,26,”computer”,13/05/95,2300,”m”.
Insert into Teacher values(9,”raja”,26,”computer”,”13/05/95”,2300,”m”);
15) Delete all those records whose Sal is more than 5000 and are a Male Teacher.
Delete from Teacher where Sal>5000 AND Gender=’M’ ;
24) Display the entire computer department teacher name in ascending order of Sal.
Select Name from Teacher where Dept=”Computer” order by Sal asc ;
25) Display all records that are getting salary more than 10000 and also in Maths Department.
Select * from Teacher where Sal>10000 AND Dept=”Maths” ;