/ * I have a problem with a query in SQLServer 2008 to find the sum of all rows and the sum of parts of rows. I used ROW_NUMBER (), outer_apply, but I can not solve the problem. I have been browsing for a few days on your stack_overflow website, but I cannot find anything like it. Now I donβt even know how to do it. Can someone help me ???
Input data: section number, starting Node, final Node, region, section - the distance between two nodes. Each node belongs to a specific area. * /
ABCD -------------------------------- Section Initial Final Area Number Node Node
/ * It is necessary to calculate the cumulative area (Area Cum), which belongs to each node on the network. The result should be * /
ABCDEF ----------------------------------------------------- Section Initial Final Area Area Description Number Node Node Cum
IvanN source share