0

I have the following table structure

--ID-- --Date-- --Value--
  1    2013-1-2     23
  2    2013-1-2     11
  3    2013-1-3     8
  4    2013-1-3     7

As you can see the dates can overlap and I want to output every different date with a summation of the values attributed. So for this it would be.

--Date--   --Total-- 
2013-1-2      34 
2013-1-3      15

Is this even possible with a query or will I have to do some seperate summation?

1 Answer 1

1
SELECT Date, sum(Value) as Total
FROM Table
GROUP BY Date
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.