Q&A for people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment
CREATE table #yourtable ([PodTime] int, [Samples] int, [Type] int) ; INSERT INTO #yourtable ([PodTime], [Samples], [Type]) VALUES (1, 45, 0), (1, 72, 1), (2, 120, 0), (2, 45, 1), (3, 67, 0) ; SELECT PodTime, SUM(Samples) FROM #yourtable GROUP BY PodTime;