I'm having trouble understanding how to provide proper relational algebra expressions to some of my assignment problems. I realized instead of having the JOIN selection operator outside the relation instance, maybe I can put it also inside it. I'm sorry if I don't make much sense but here's what I am thinking about:
The question is
Find the name of all employees whose salary is more than 15,000.00 and managed by Paul
WORKS (employee-name, company-name, salary)
MANAGES (employee-name, manager-name, position)
My answer is Π(employee-name) ((MANAGES⋈(σ(salary > 15000 ∧ manager-name="Paul")(WORKS))) https://i.stack.imgur.com/ZQ6ZM.png
But should I just instead do this Π(employee-name) (( σ(salary > 15000 ∧ manager-name="Paul")(WORKS⋈MANAGES) https://i.stack.imgur.com/6nwIy.png