I have a table like this
and need to aggregate like below
DROP TABLE IF EXISTS #tmp2
SELECT item, Quantity, Seconds
SUM(Quantity) AS total_quantity,
--SUM(Seconds) AS total_seconds,
--SUM(Seconds)/3600 AS items_per_hour
INTO #tmp2
FROM #tmp1
GROUP BY item