i have a query that contains a series of 21 UNIONs
, e.g.:
CREATE VIEW dbo.USGovCurrencyOnHandBreakdown AS
SELECT ... FROM a
UNION ALL
SELE
You could store the subqueries into temp tables, e.g. the USGovCurrencyOnHandBreakdown_Additions
and USGovCurrencyOnHandBreakdown_Subtractions
that you mentioned, and than selecting from those temp tables instead of views.
Of course, the transactions could be an issue because of the dirty reads, I don't know if that's a concern in this case...