I am wondering if someone can look at this query and tell me if this can be optimized. There are multiple heap tables in this query.
[code language="sql"]--select
-- TextData,
[code language="sql"]--select
-- TextData,