Is it possible to join these two queries in only one query?
If the first query returns a null value I need get the value from the 2nd query.
SELECT MIN(A.CODE) FROM TABLE_A A, TABLE_B B
WHERE A.VALUE >= B.VALUE
SELECT MAX(A.CODE) FROM TABLE_A A, TABLE_B B
WHERE A.VALUE < B.VALUE
Thanks in advance.
If the first query returns a null value I need get the value from the 2nd query.
SELECT MIN(A.CODE) FROM TABLE_A A, TABLE_B B
WHERE A.VALUE >= B.VALUE
SELECT MAX(A.CODE) FROM TABLE_A A, TABLE_B B
WHERE A.VALUE < B.VALUE
Thanks in advance.