- Joined
- Apr 21, 2005
- Sythe Gold
- 5,470
- Messages
- 8,074
you'd have to be using an SQL engine that supports WITH -- it's non standardWalk SQL??
Like this??
Code:With Family As ( Select s.ID, s.ParentSeriesId, 0 as Depth From Series s Where ID = @ParentID Union All Select s2.ID, s2.ParentSeriesId, Depth + 1 From Series s2 Join Family On Family.ID = s2.ParentSeriesId ) Select * From Family
Or am I no where close to getting that done
I'd be asking them to do it in pure sql. Also I'd be asking them to do it on the spot without googling lolol






























































































