| From: | Bjørn T Johansen <btj(at)havleik(dot)no> |
|---|---|
| To: | PostgreSQL general list <pgsql-general(at)postgresql(dot)org> |
| Subject: | I need a SQL... |
| Date: | 2003-09-11 11:25:10 |
| Message-ID: | 1063279510.13384.34.camel@dt-btj.dagbladet.no |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
I need to write a SQL that calculates the interval between a start time
and a stop time. This is the easy part. The problem is that I only have
the time part, i.e. no date, so how can I be sure to also calculate the
interval if the start time is before midnight and the stop time is after
midnight?
Regards,
BTJ
--
-----------------------------------------------------------------------------------------------
Bjørn T Johansen (BSc,MNIF)
Executive Manager
btj(at)havleik(dot)no Havleik Consulting
Phone : +47 67 54 15 17 Conradisvei 4
Fax : +47 67 54 13 91 N-1338 Sandvika
Cellular : +47 926 93 298 http://www.havleik.no
-----------------------------------------------------------------------------------------------
"The stickers on the side of the box said "Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better", so clearly Linux was a supported platform."
-----------------------------------------------------------------------------------------------
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alexander Blüm | 2003-09-11 11:36:42 | query-question |
| Previous Message | Caroline Yong | 2003-09-11 09:35:38 | Re: how to replicate database |