





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Some concept of Database Systems are Introduction to Database Systems, Introduction to Database Systems, Logical Query Plan, Memory Hierarchy, Missing Information. Main points of this lecture are: More SQL Select , Violent, Breather, Star, Teaboy, Stellar, Cloudboy, Compilation, Mix, Artists
Typology: Slides
1 / 29
This page cannot be seen from the preview
Don't miss anything!






















Track
cID Num Title Time aID
1 1 Violent 239 1 1 2 Every Girl 410 1 1 3 Breather 217 1 1 4 Part of Me 279 1 2 1 Star 362 1 2 2 Teaboy 417 2
CD cID Title Price 1 Mix 9. 2 Compilation 12.
Artist aID Name 1 Stellar 2 Cloudboy
SELECT A.Name FROM
Employee A, Employee B
WHERE A.Dept=B.Dept
AND B.Name=‘Andy’
A.Name A.Dept B.Name B.Dept John Marketing John Marketing Mary Sales John Marketing Peter Sales John Marketing Andy Marketing John Marketing Anne Marketing John Marketing John Marketing Mary Sales Mary Sales Mary Sales Peter Sales Mary Sales Andy Marketing Mary Sales Anne Marketing Mary Sales
A.Name A.Dept B.Name B.Dept John Marketing John Marketing Andy Marketing John Marketing Anne Marketing John Marketing Mary Sales Mary Sales Peter Sales Mary Sales Mary Sales Peter Sales Peter Sales Peter Sales John Marketing Andy Marketing Andy Marketing Andy Marketing Anne Marketing Andy Marketing
A.Name John Andy Anne
Employee
Name Department Manager
John Marketing Chris Mary Marketing Chris Chris Marketing Jane Peter Sales Jane Jane Management
SELECT Manager FROM Employee
SELECT * FROM Employee WHERE Name NOT IN (‘Chris’, Manager ‘Jane’) Chris Chris Jane Jane
Name Department Manager John Marketing Chris Mary Marketing Chris Peter Sales Jane