










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











eg. 16 List the boys of class 1A, order by their names. name id Peter 9801 Johnny 9803 Luke 9810 Bobby 9811 Aaron 9812 Ron 9813
dcode name id Aaron 9812 Bobby 9811 Johnny 9803 Luke 9810 Peter 9801 Ron 9813 Result
eg. 17 List the 2A students by their residential district. name id class dcode Jimmy 9712 2A HHM Tim 9713 2A HHM Samual 9714 2A SHT Rosa 9703 2A SSP Helen 9702 2A TST Joseph 9715 2A TSW Paula 9701 2A YMT Susan 9704 2A YMT
Music id 9801 type Student 9801 id name class 9801 Product id name (^) class type Same id
eg. 25 Make a list of students and the instruments they learn. (Natural Join)
class name id type 1A Aaron 9812 Piano 1A Bobby 9811 Flute 1A Gigi 9824 Recorder 1A Jill 9820 Piano 1A Johnny 9803 Violin 1A Luke 9810 Piano 1A Mary 9802 Flute : : : :
eg. 25 Make a list of students and the instruments they learn. (Natural Join)
Music Student Product
m.type= "Piano"
eg. 26 Find the number of students learning piano in each class.
class cnt 1A 4 1B 2 1C 1
eg. 27 List the students who have not yet chosen an instrument. (No match)
No match Music id type Student 9801 id name class
eg. 27 List the students who have not yet chosen an instrument. (No match)
class name id 1A Mandy 9821 1B Kenny 9814 1B Tobe 9805 1C Edmond 9818 1C George 9817 : : :
Natural Join No Match Outer Join