1.

NUMBERNAMEAGESUBJECTDATEOFJOINSALARYGEN DER1JUGAL34COMPUTER10/01/201912000M2PRATIGYA31SCIENCE24/03/201920000F3SANDEEP32MATHS12/12/201930000M4SANGEETA35SCIENCE01/07/202040000F5SATTI42MATHS05/09/202025000M6SHYAM50SCIENCE27/06/202130000M7SHIV OM44COMPUTER25/02/202121000M8SHALAKHA33MATHS31/07/202020000FWrite SQL commands: a. To show all the information about IT teachers. b. To list the details of all the teachers who are getting salary between 20000 to 35000. c. To display the subject of all the teachers whose age is more than 40 years. d. To display the list of names of all the teachers in alphabetical order.

Answer»

a. Select * from Teachers where subject = “COMPUTER”;

b. Select * from teachers where salary >= 20000 and salary 40; 

c. Select Subject from Teachers where age > 40;

d. Select * from Teachers order by name



Discussion

No Comment Found

Related InterviewSolutions