Subject Re: CTE is called very often
Author
Hi all,

I found out that this happens only with "left outer join".

With left outer join DetailDataForAllPRO selects its data for each PRO  --> very slow
With inner join DetailDataForAllPRO selects its data just once.   --> very fast, but only PRO with dataildata

Same is true if I try it with a "Derived Table".

Why this happens.

Can I write a statement which works like the left outer join but calls DetailDataForAllPRO just once.

Thank you for your help,
Josef