Hi, I havethis data in a recursive table, and I want to flatten this hierarchy information. I have accomplished this by doing a query but I was wandering if there is a better way to get the same result.Data that I have:CREATETABLE[dbo].[ElementosGeograficos_]( [IdElement][int]IDENTITY(1,1)NOTNULL, [Name][varchar](50)NOTNULL, [IdParentElement][int]NULL, [IdLevel][int]NOTNULL, CONSTRAINT[PK_ElementosGeograficos_]PRIMARYKEYCLUSTERED( [IdElement]ASC)WITH (PAD_INDEX=OFF,
↧