79107891

Date: 2024-10-20 19:33:00
Score: 0.5
Natty:
Report link

SUM + GROUP BY is the way to go, so long as you have Value pre-calculated:

SELECT Service_Name, SUM(Price) AS Price, SUM(Qty) AS Qty,
       SUM(Value) AS Value, Ident
FROM NewOne GROUP BY Service_Name, Ident
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gendalph