Re: [SQL] 7.2 time format funtion issue

2002-10-23 Thread Tomasz Myrta
extract(DOW FROM TIMESTAMP TIMESTAMP(a.startdate)) AS "dow", ERROR: parser: parse error at or near "TIMESTAMP" Try one of these: extract(dow from cast(a.startdate as timestamp)) as "dow" extract(dow from a.startdate) as "dow" extract(dow from a.startdate::timestamp) as "dow" I remember I had pro

[SQL] 7.2 time format funtion issue

2002-10-23 Thread Nicholas Barthelemy
I have just installed redhat 8.0. It comes with postgresql rpms for 7.2.2. I have been trying to get an application I have written to work, but my queries fail whenever I have queries that use internal date/time formatting functions. example: SELECT a.assignmentid AS "id", u.lastname || ', ' ||