On Dec 10, 2007 2:13 PM, rihad <rihad(at)mail(dot)ru> wrote:
> Hi, is there a way to get the difference in hours between two
> timestamps?
SELECT (EXTRACT (EPOCH FROM TIMESTAMP '20071211 00:00') - EXTRACT
(EPOCH FROM TIMESTAMP '20071209 01:00')) * INTERVAL '1 second';