You are on page 1of 1

to display the details of the support staff

select *
from staff
where staff.staff_type='support staff';
to list the names of all the male students of yamuna house and of ganga house
select name
from student,house
where student.sex='male';
to list house colour wise all the students till class 4
select student.name
from student
where student.class<=4;
to display the subject codes of all the subjects of maths dept
select sub_code,department_name
from subject
where department_name='maths';
to update the address of employee manish verma(ssn-1011) to 'c-132 sec-45,NOIDA'
update staff
set address='c-132 sec-45,NOIDA'
where ssn=1011 and name='manish verma';

You might also like