Wow, who wrote that?
Hopefully the AB and EF Derived Tables return only a single value, but then they should be rewritten as a Scalar Subquery (TD13+).
And the FULL JOIN ON 1=2 plus COALESCE emulates a UNION ALL of two tables with different number of columns instead of simply writing that UNION.
Dieter
↧