79294597

Date: 2024-12-19 14:23:50
Score: 0.5
Natty:
Report link

If you need decreasing sum, just reverse the condition T2.[ID] <= T1.[ID] as T2.[ID] >= T1.[ID] So it sums all items after and including the current.
For example the first line with T1.ID=1 sums whole table by condition T2.ID >= 1 that is true for all rows.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: crackcraft