If I have a table like this:
------------------------------
|id |duration |date |
|1 |20 |1392479451 |<--
|2 |20 |1392479451 |
|3 |10 |1392478620 |<--
|4 |30 |1392479457 |<--
|5 |30 |1392479457 |
|6 |30 |1392479457 |
------------------------------
I only want to SUM
the first of each unique date
:
----------------
|SUM(duration) |
|60 |
----------------
How do I do this, please?