Re: SQL and parse errors - Mailing list pgsql-general

From Stephan Szabo
Subject Re: SQL and parse errors
Date
Msg-id 20020305081358.N90982-100000@megazone23.bigpanda.com
Whole thread Raw
In response to SQL and parse errors  ("Johnson, Shaunn" <SJohnson6@bcbsm.com>)
List pgsql-general
On Tue, 5 Mar 2002, Johnson, Shaunn wrote:

> explain
> select
>                 q.qid,
>                 q.year,
>                 m.contract,
>                 m.mbr_num,
>                 m.bu,
>                 m.mbr_sex,
>                 m.product,
>                 m.prov_num,
>                 m.riskgrp,
>                 p.c_spec_1 as spec,
>                 date_larger(m.effdt, q.effdt) as effdt,
>                 date_smaller(m.enddt, q.enddt) as enddt,
>         -->>>   (date_smaller(m.enddt, q.enddt) as enddt -
> date_larger(m.effdt, q.effdt) as effdt)::float8 / 30.4 as memmonth <<<--

^^ - I don't think you can use as clauses inside the expression... take
out the extra as enddt and as effdt?


pgsql-general by date:

Previous
From: tony
Date:
Subject: Re: database problem..
Next
From: "Johnson, Shaunn"
Date:
Subject: Re: SQL and parse errors