Viewing 4 posts - 1 through 4 (of 4 total)
You may want to PIVOT the points (pt_total) for each category (cat_id)
SELECT p_id, SUM([1]) scores, SUM([2]) rebounds, SUM([3]) steals
FROM @points
PIVOT (SUM(pt_total)
September 3, 2017 at 4:03 pm
Can you please provide your table structure, data sample and expected result?
August 2, 2017 at 3:10 pm
For this kind of data structure, the company id of the manager should only have its value based on his manager not based on each employee under him.
For example:
July 23, 2017 at 12:30 pm
Hi skb 44459,
Can you please more specific on the requirement? Can you please explain more about the TreeLevel since your example says that it will only delete rows...
July 23, 2017 at 11:38 am
Viewing 4 posts - 1 through 4 (of 4 total)