Reason:
You cannot use the OR logical operator on a set name specified in a SELECT statement's WHERE clause. When retrieving records that optionally participate in sets, consider the example below, where records A, B, and C are related in the following sets:
To return all B occurrences that are owned by any A or C occurrence, issue the following request:
SELECT *
FROM B
WHERE EXISTS
(SELECT *
FROM A
WHERE A-B)
OR EXISTS
(SELECT *
FROM C
WHERE C-B)
Module:
OLQSSQLO
Severity:
0
|
Copyright © 2014 CA.
All rights reserved.
|
|