Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

Flatten hierarchy Table

$
0
0
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,

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>