How do I represent a subquery in relation algebra? Do I put the new select under the previous select condition?
SELECT number
FROM collection
WHERE number = (SELECT anotherNumber FROM anotherStack);
You would just rewrite that as a join
.
I'm not sure how widely used the syntax I learned for Relational Algebra is so in words.
anotherNumber
from anotherStack
anotherNumber
from the result of step 1 as number
collection
number
from the result of step 3