ابتدا گره Spain آخر را بدست آوره و گره آخرين فرزند Spain را هم بدست مي آوريم بعد در موقعيت بدست آمده درج مي كنيم:
DECLARE @parent HierarchyId = (SELECT top 1 Level FROM SimpleDemo WHERE Location = 'Spain'
order by Level desc);
DECLARE @last_node HierarchyId = (SELECT max(Level) Level FROM SimpleDemo WHERE level.GetAncestor(1) = @parent);
insert into SimpleDemo (Level, Location)
values (@parent.GetDescendant(@last_node, NULL), 'Real Madrid')
select *, level.ToString() c from SimpleDemo
order by c