Here is an example T(A) = RENTED(A,C) / BOATS(C)
select distinct R1.A from RENTED R1 where not exists (select * from SAILBOAT S where not exists (select * from RENTED R2 where R1.A = R2.A and R2.C = SC) );
My question is: if NOT EXISTS just returns TRUE or FALSE , how does SELECT distinct R1.A know which values ββto return?
For example, this is jsfiddle
This query returns ALL in the column of numbers if there is a number = 5
sql relational-algebra
Instinct
source share