79432227

Date: 2025-02-12 07:14:23
Score: 1
Natty:
Report link

Use group by Service_Name, Price, and Ident while summing the Qty and Value.

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