CREATE table #yourtable ([PodTime] int, [Samples] int, [T...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Artificial Intelligence

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 SUM(Samples)
FROM #yourtable
GROUP BY PodTime;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results