I am new to query optimization,how to use semi join while implementing decorrelation I can't totally understand.
Consider the query
SELECT A, B
FROM r
WHERE r.B < SOME (
SELECT B
FROM s
WHERE s.A = r.A
)
Show how to decorrelate the above query using the multi-set version of the semi-join operation