parent child have too many problems :
1/Must implement recursivity (bad performance)
2/hard to know the level of the member
3/ impossible to have different columns at each level
> Hi,
> Typically, if I want to design a hierarchy that has more than 2 levels, I
[quoted text clipped - 50 lines]
> > Thanks
> > cymryr
Tomasz Borawski - 11 Feb 2005 13:49 GMT
Hi,
Of course, you have right, but please remember that, this is a dimension
table and usually it contains much less records than a fact table, so
performance is not an issue – SQL Server can load whole table into memory,
also you should expect minimal insert, update and delete activities.
If you really new a level number, you can define a column called LEVEL and
maintenance this information by trigger
If you want different columns at each level, you can define a view.
Tomasz B.
> parent child have too many problems :
> 1/Must implement recursivity (bad performance)
[quoted text clipped - 56 lines]
> > > Thanks
> > > cymryr