So this was not the actual query :-(
Of course this is different now.
This view is dangerous:
What if a user uses multiple dates or omits the WHERE-condition?
Each qualifying row from each table will be returned multiple times (once per date) resulting in a stupid cross-join.
IMHO this should be better implemented as a Macro/SP.
Dieter
↧