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 13, 2016
1 parent 716ad4a commit 15c19a3
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions assignment3-infs
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,10 @@ return $tscript = $stud.s
c. All students named “John Smith” has taken the course “cs530”
(must be in Transcipts)

/fine
//fixed

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 = $class
return every $s in $doc.student[][$$.name = "John Smith"]
satisfies ($s.s = $doc.transcript[][$$.co = "CS530"].s)


D. The student “G113” student has satisfied all prerequisites each
Expand Down

0 comments on commit 15c19a3

Please sign in to comment.