Re: [GENERAL] I need a SQL...

2003-09-11 Thread Bjørn T Johansen
You are absoletely correct, quoting the zero did the trick... And my database has been intialized with Norwegian local, so I am guessing that that's reason Thanks to all fo you... :) BTJ On Thu, 2003-09-11 at 16:26, Tom Lane wrote: > =?ISO-8859-1?Q?Bj=F8rn?= T Johansen <[EMAIL PROTECTED]>

Re: [GENERAL] I need a SQL...

2003-09-11 Thread Mattias Kregert
n" <[EMAIL PROTECTED]> > > > Yes, I am sure, I just use copy-and-paste and I have double checked > > > I am running on 7.3.4 but that shouldn't make any difference? > > > > > > BTJ > > > > > > On Thu, 2003-09-11 at 14

Re: [GENERAL] I need a SQL...

2003-09-11 Thread Mattias Kregert
quot;Mattias Kregert" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, September 11, 2003 3:02 PM Subject: Re: [GENERAL] I need a SQL... > Well, it's close... :) > > But it looks like the case doesn't work.. > If I run your sql, the timediff is neg

Re: [GENERAL] I need a SQL...

2003-09-11 Thread Bjørn T Johansen
> I am running on 7.3.4 but that shouldn't make any difference? > > > > BTJ > > > > On Thu, 2003-09-11 at 14:56, Mattias Kregert wrote: > > > When i run it, it works as intended (on pg 7.3.3). Which version do you use? > > > > > >

[GENERAL] I need a SQL...

2003-09-11 Thread Bjørn T Johansen
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 midnig

Re: [GENERAL] I need a SQL...

2003-09-11 Thread Nigel J. Andrews
On 11 Sep 2003, Bjørn T Johansen wrote: > Yes, I am sure, I just use copy-and-paste and I have double checked > I am running on 7.3.4 but that shouldn't make any difference? > > BTJ > > On Thu, 2003-09-11 at 14:56, Mattias Kregert wrote: > > When i run it, it works as intended (on pg 7.3.3

Re: [GENERAL] I need a SQL...

2003-09-11 Thread Bjørn T Johansen
lt;[EMAIL PROTECTED]> > Sent: Thursday, September 11, 2003 3:02 PM > Subject: Re: [GENERAL] I need a SQL... > > > > Well, it's close... :) > > > > But it looks like the case doesn't work.. > > If I run your sql, the timediff is negative. > >

Re: [GENERAL] I need a SQL...

2003-09-11 Thread Bjørn T Johansen
gt; - Original Message - > From: Bjørn T Johansen > To: Andrew L. Gould > Cc: PostgreSQL general list > Sent: Thursday, September 11, 2003 2:12 PM > Subject: Re: [GENERAL] I need a SQL... > > On Thu, 2003-09-1

Re: [GENERAL] I need a SQL...

2003-09-11 Thread Mattias Kregert
    dsfdfd - Original Message - From: Bjørn T Johansen To: Andrew L. Gould Cc: PostgreSQL general list Sent: Thursday, September 11, 2003 2:12 PM Subject: Re: [GENERAL] I need a SQL... On Thu, 2003-09-11 at 14:07, Andrew L. Gould wrote: Yes, the

Re: [GENERAL] I need a SQL...

2003-09-11 Thread Bjørn T Johansen
On Thu, 2003-09-11 at 14:07, Andrew L. Gould wrote: On Thursday 11 September 2003 06:25 am, Bjørn T Johansen wrote: > 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,

Re: [GENERAL] I need a SQL...

2003-09-11 Thread Andrew L. Gould
On Thursday 11 September 2003 06:25 am, Bjørn T Johansen wrote: > 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