I am attempting to build a view which selects from an active and archive table, but only returns a record from the archive folder when the record does not exist in the active folder. It must also only return the archive record with the latest timestamp.
Thank you
Example:
Active:
*ID ItemID Price*
1 001 1.00
2 002 4.99
3 004 2.00
Archive
*ID ItemID Price ArchiveDate*
1 001 0.99 1/1/2013
2 002 3.78 1/1/2013
3 003 5.00 1/5/2013
4 005 3.49 1/5/2013
5 003 6.99 1/10/2013
Should return the following dataset
*ItemID Price*
001 1.00
002 4.99
003 6.99 <-- From Archive
004 2.00
005 3.49 <-- From Archive