For some reason the below query returns no rows when I use EXISTS and EXISTS.
But this query does using OR:
However, I truly only need rows that exists evaluates to TRUE in BOTH subqueries. Is there anyway to do this?
Code:
SELECT columns
FROM tables
WHERE
(
EXISTS ( subquery1 )
AND
EXISTS ( subquery1 )
)
Code:
SELECT columns
FROM tables
WHERE
(
EXISTS ( subquery1 )
OR
EXISTS ( subquery1 )
)
However, I truly only need rows that exists evaluates to TRUE in BOTH subqueries. Is there anyway to do this?