Need help on a query getting hierachy data.
I have the following table and data arranged as below.
[code language="sql"]
declare @tblShop as table
(
ItemName varchar
I have the following table and data arranged as below.
[code language="sql"]
declare @tblShop as table
(
ItemName varchar