Click here to load reader
Upload
ranadip-das
View
216
Download
0
Embed Size (px)
Citation preview
8/13/2019 Relati0nal Algebra
http://slidepdf.com/reader/full/relati0nal-algebra 1/2
HW #1 Suggested Solutions
1. Find the last name, first name and major of all students taking any section of the course “4380”offered by the “om!uter "cience” de!artment in “Fall ##”.
$ %& '()*"+ >< $+-*/+ 2+*+ 'coursenumber & 4380 -$
'de!artmentname & “om!uter "cience”
" %& '$ >< ' "+5( 2+*+ semester&”Fall ##” 6sectionid7
" %& ''" >< *-"*5 >< ")$+6lastname, firstname, major7
Note: CD is all courses numbered 4380 offered by the Computer Science Department. CS is the identifier of all sections of this course offered in Fall99. S is all students ta!in" any of the sections in CS.
. Find the first name and last name of all instructors 9ho taught the course “4380” offered by the“om!uter "cience” de!artment.
5 %& '$ >< "+5(6instructorid7
5 %& '5 >< 5"*)(*6firstname, lastname7
Note. CD is the same as abo#e. $N is the id of instructor %ho tau"ht any section ofcourse 4380 from Computer Science Department. $N& is the result %hich has thename of the instructors.
3. Find the number and de!artment identifier of all courses in 9hich no student e:er got an “F”.
F"ections %& '*-"*5 9here grade & ;F<6sectionid7
F %& 'Fsections >< "ection6coursenumber, de!tid7
oF %& '()*"+6coursenumber, de!tid7 = F
Note. Fsections are the identifiers of all section in %hich a student "ot an F.FC is all courses '"i#en by course number and department id( in %hich a student
"ot an F. Finally) NoF is the result. *e ta!e all courses and subtract from this the courses
in %hich a student "ot an F.
8/13/2019 Relati0nal Algebra
http://slidepdf.com/reader/full/relati0nal-algebra 2/2