We have 15 audit trail tables that need to be combined to look for inventory adjustments with certain criteria only.
Is it best to do a UNION ALL with all tables, and then filter for criteria, OR throw the criteria into the mix on each table before doing a UNION ALL?
Each table is only a few thousand records and the final filtered list is typically less than one thousand, which is being output for reporting.
A foxpro app generates the tables and we have little control of the database design on this end.