0
Hi,
I have a Hierarchic table T like this :
ID Caption Table Id_Dim
-----------------------------------------
1 A [DimA] NULL
2 B [DimB] id_A
3 C [DimC] id_B
How can generate this SQL from the table T ?
SELECT * FROM [DimA] -- Level 1
SELECT * FROM [DimB] WHERE id_A =@id_A -- Level 2
SELECT * FROM [DimC] WHERE id_A =@id_A AND id_B=@id_B -- Level 3
thx for help