I want to group the query data based on the groupid attribute, the following image is my table image
I want it to show it like a tree structure where i can show the data in this format:
Group1
price
length
width
price
length
width
price
length
width
Group 2
same as above
the 3 elements under each group can have 3 or less than 3 or just one or nothing, i want to get data so i can create textfields to update dat in my database, but that is not what i am trying
here is my query
select priceid,itemid,groupid,price,length,width from prices
Try using the following concept:
Insert data:
Execute the query:
Results:
Note the trailing comma should not affect the validity of the data. My experience with SQL Server is limited, but this should get you started in a direction that can work.
Fiddle:
http://sqlfiddle.com/#!6/66b19/35