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]
SELECT * FROM [DimB] WHERE id_A =@id_A
SELECT * FROM [DimC] WHERE id_A =@id_A AND id_B=@id_B
thx