For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.
SQL> select * from test; A B ---------- ---------- 5 6 5 5 6 6 6 5 3 5 5 3 SQL> select * from test where (a=5 or b=5) and not (a=5 and b=5); A B ---------- ---------- 5 6 6 5 3 5 5 3
SELECT ename , job , sal FROM scott.emp WHERE CASE WHEN job = 'CLERK' THEN 1 ELSE 0 END + CASE WHEN sal < 1275 THEN 1 ELSE 0 END = 1 ;
ENAME JOB SAL ---------- --------- ---------- WARD SALESMAN 1250 MARTIN SALESMAN 1250 MILLER CLERK 1300