Professional Documents
Culture Documents
OR
1) Find the subject taught by each teacher.
select distinct t_name,subject from teacher t,student_teacher x
where t.tno=x.tno ;
2) Rename table.
alter table teacher rename to teacherpvg;
Slip 2
OR
1) List the names of the teachers who are teaching to a student
“ Ram”.
select t_name from teacher t,student s,student_teacher x where
s.sno=x.sno and t.tno=x.tno and s_name='Ram';
Slip 3
slip 5 and 6
1) Incease the expenses of all the trips by Rs 5000 .
update expenses set amount=amount+'5000';
slip 7 and 8
slip 9 and 10
.slip 11 and 12
slip 13 and 14
slip 16
1)List the salesman numbers and names of the salesman who made
trips to "Mumbai"
2)Find the names of the salesman starting with "A"
3)Rename table salesman.
Slip 18
where emp.eno=dept.eno
group by dname;
2 Add column phone_No into Emp table with data type int.
slip 19
2. Add column amount into Sales_order table with data type int.
2 Delete the details of the clients whose names start with ‘A’
character.
order by ordDate;
set addr='pimpri'
where cname='Mr.Roy';
slip 20
where doctor.hno=hospital.hno
and city='pimpri';