Re: [GENERAL] Bug in queries ??

2004-11-23 Thread Joost Kraaijeveld
Hi Jim and Richard, Thank for pointing out something that I should have known. Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 e-mail: [EMAIL PROTECTED] web: www.askesis.nl ---(end of broadcast)-

Re: [GENERAL] Bug in queries ??

2004-11-23 Thread Jim Seymour
"Joost Kraaijeveld" <[EMAIL PROTECTED]> wrote: > > Hi all, > > > I have three questions about 1 table > > CREATE TABLE public.logs > ( > rule_name varchar(32) NOT NULL, > bytes int8 NOT NULL, > pkts int8 NOT NULL, > hostname varchar(100), > that_time int4 NOT NULL > ) WITH OIDS; > >

Re: [GENERAL] Bug in queries ??

2004-11-23 Thread Richard Huxton
Joost Kraaijeveld wrote: If I run the following query: select cast(min(that_time) as abstime), cast(max(that_time) as abstime), (sum(bytes)/(1024*1024)) as "Totaal in Megabytes" from logs where that_time between cast( abstime('2004-10-1 00:00') as int4) and cast( abstime('2004-11-1 00:00') as int

[GENERAL] Bug in queries ??

2004-11-23 Thread Joost Kraaijeveld
Hi all, I have three questions about 1 table CREATE TABLE public.logs ( rule_name varchar(32) NOT NULL, bytes int8 NOT NULL, pkts int8 NOT NULL, hostname varchar(100), that_time int4 NOT NULL ) WITH OIDS; Question 1. If I run the following query: select cast(min(that_time) as abstim