savosin_sergey (7/5/2010)
Thank you, Duncan, you've right - my tempdb at compatibility_level=90 and the query from task returns 21, though my test database has compatibility_level=80
And thank you for noticing the behaviour in the first place!
Duncan