Query for PO Revision History without Duplicates
Product Name and Version: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
I'm trying to query the history of purchase orders to the shipment level. In particular I'm trying to track changes to the Promised Date over time. I found a good document on the structure of the archive tables at Document 251537.1 (oracle.com).
The problem is, not every revision is in every table. Changes go to the relevant table only, meaning that if I join on revision numbers I don't get all revisions. If I don't join on that I get a bunch of duplicate results though. Is there a way to connect the three PO history tables so as to display the entire revision history without duplicates? Or is there a view somewhere that does this already?