Skip to content

Commit

Permalink
Update assignment3-infs
Browse files Browse the repository at this point in the history
  • Loading branch information
mfzeidan committed Nov 8, 2016
1 parent 5e73eb7 commit 23afb2a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions assignment3-infs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ return $tscript = $stud.s
c. All students named “John Smith” has taken the course “cs530”
(must be in Transcipts)


let $jsmith_no :=(
for $x in $doc("student")[]
where (every $name in $x.name satisfies $name eq "John Smith" )
return $x.s
)

let $search_classes := $doc("transcript")[][$$.s eq $jsmith_no].co
for $class in $search_classes
where $class eq "CS530"
return $class

// NOT RIGHT

let $student_no :=(
Expand Down

0 comments on commit 23afb2a

Please sign in to comment.