Day 3
Day 3
ans)
select count(*) from school
group by subject;
d. To display details of all teachers who have joined
the school after
01/01/1999 in descending order of experience.
ans)
select * from school where doj>"1999-01-01"
order by exp desc;
e. Delete all the entries of those teachers whose experience
is less than 10 years
and name contains the substring ‘IS’ in SCHOOL table.
ans)
delete * from student where exp<10 and teachername
like "%is%";
o. Display the teacher details who are joined in the year 2000.