Re: [SQL] TPCH Benchmark query result invalid

2006-12-12 Thread Cronje Fourie
Thanks guys. Richard your fix didn't seem to work. But it's got me in the right direction :) Time to RTFM ;) Cronje On Tue, 2006-12-12 at 15:05 +, Richard Huxton wrote: > Cronje Fourie wrote: > > When running the following query against a TPCH db I get 0 results > > returned > > > and

Re: [SQL] TPCH Benchmark query result invalid

2006-12-12 Thread Michael Glaesemann
On Dec 13, 2006, at 1:23 , Tom Lane wrote: Richard Huxton writes: richardh=# SELECT interval '3' month; interval -- 00:00:00 (1 row) It's got a zero-length date-range it's comparing against. If you have interval '3 months' that should work, but I'm afraid I haven't got time

Re: [SQL] TPCH Benchmark query result invalid

2006-12-12 Thread Tom Lane
Richard Huxton writes: > richardh=# SELECT interval '3' month; > interval > -- > 00:00:00 > (1 row) > It's got a zero-length date-range it's comparing against. If you have > interval '3 months' that should work, but I'm afraid I haven't got time > to check against the specs to see

Re: [SQL] TPCH Benchmark query result invalid

2006-12-12 Thread Richard Huxton
Cronje Fourie wrote: When running the following query against a TPCH db I get 0 results returned and o_orderdate < date '1993-07-01' + interval '3' month That's the problem line. richardh=# SELECT interval '3' month; interval -- 00:00:00 (1 row) It's got a zero-length da

[SQL] TPCH Benchmark query result invalid

2006-12-12 Thread Cronje Fourie
When running the following query against a TPCH db I get 0 results returned select o_orderpriority, count(*) as order_count from orders where o_orderdate >= date '1993-07-01' and o_orderdate < date '1993-07-01' + interval '3' month and exists (