Re: SUM all timeelapse WHERE timetype = 'Break' but only the rows that are after(below) timetype = 'Start'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 28, 2015 at 1:56 AM, litu16 <litumelendez@xxxxxxxxx> wrote:

Pls I would like to know how to SUM THEM UP, not just SELECT THEM, hope some
good PostgreSQL fellow programmer could give me a hand with it.



Also see "GROUP BY"

Instead of showing a picture of a table you might get more help if you make into into a VALUES-based CTE and incorporate it directly into an example query.

WITH data AS ( VALUES (...),(...),(...) )
SELECT ...
FROM data
...

David J.
 


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux