relational/test/max_rating_in_age_range.query

2 lines
242 B
Plaintext

(σ age<25(people) σ age>30(people)) ⋈ ratings-πid,name,chief,age,rating(σ rating<r((ρid➡i,rating➡r(π id,rating((σ age<25(people) σ age>30(people)) ⋈ ratings))) * (σ age<25(people) σ age>30(people)) ⋈ ratings))