Hi Folks.
I just discovered a minor data inconsistency in a test database. (I believe I can prevent that in production.) To check it I need to be able to run two queries and check the differenced between them. I tried this:
select (yadayada) from <table-a> where (the usual)
minus
select (yadayada) from <table-b> where (the usual)
I get a syntax error on the minus. Per ideas I gound in google, I also tried "except". Same syntax error.
To your knowledge, is there such an operator in release 12 to display what is inh the active set of query-a that is NOT in thqt of query-b?
A workaround just occurred to me: Unloading both queries (none too enormous) and diffing the files. But is there a direct way, so I can correct what's missing from within SQL? (Yes, I know the unloaded diff could be loaded into table-b.)
Thanks.
------------------------------
+-----------------------------------------------------------+
| I am pleased to report that I had no problems today. |
| I had only issues, opportunities, challenges and valuable |
| learning experiences. |
+------------------------------------------ Jacob S --------+
------------------------------