Worksheet Week2
Worksheet Week2
ANY&ALL
3. Create a tables called student and teacher and Apply the following commands.(Ignore if
already created the table)
* student table
Name Type
sno int(10)
sname Varchar2(20)
sage int(10)
*teacher table
Name Type
tno int(10)
tname Varchar2(20)
tage int(10)
a. Display tno,tname whose teacher age is greater than any of the student age.
b. Display tno,tname whose teacher age is greater than All the student age.
c. Display younger teachers whose age is less than Any of the students age.
d. Display youngest teachers whose age is less than All of the students age.
e. Display youngest student names whose age >any teachers age.