tsql challenge 19#...

来源: 2009-12-15 15:33:28 [旧帖] [给我悄悄话] 本文已被阅读:
http://beyondrelational.com/blogs/tc/archive/2009/12/14/tsql-challenge-19-working-with-consolidated-calculations-on-hierarchical-structures.aspx#

it's almost done except i use function to get the accumulative value of downline members. i'm not sure if it's allowed.

judges r picky, they don't like temp table nor table variable, i assume they'd rule out function too.

anyway, it's very good challenge for your tsql. i just found it out last night and i love it immediately.

enjoy~~