[SQL] Problem with Day of Week

2001-02-05 Thread Keith Perry
Greetings, I notice some talk about date problems and interestingly enough planning out an application in which I will need to be able to manipulate dates. I notice however that there seems to be a discrepancy with the day or week in 7.0.3 --- pmhcc=# select date_part('dow','now'::timestamp);

[SQL] Re: Inserting and incrementing with MAX aggregate

2001-01-25 Thread Keith Perry
> EVENTS)+1,'server down'); > > It looks like it would work. It's just a subquery... > > Ian > > Keith Perry wrote: > > > I was wondering if this statement was still supported in 7.0.x versions > > of pgSQL. I upgraded from a 6.x version where

[SQL] Inserting and incrementing with MAX aggregate

2001-01-24 Thread Keith Perry
but in the interest not having to rewrite the code (or dump, drop and recreate the tables/data), I wanted to know if there was a more stand way to incrementing a field automatically that would be fairly portable. Any help would be appreciated. Keith Perry VCSN Inc. [EMAIL PROTECTED] http://vcsn.com