From: | Andreas Joseph Krogh <andreak(at)officenet(dot)no> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Referencing named attribute in where clause doesn't workwith 7.1.2? |
Date: | 2001-08-08 13:22:01 |
Message-ID: | 3B713CF9.63A4EB83@officenet.no |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Thomas Good wrote:
>
> On Wed, 8 Aug 2001, Andreas Joseph Krogh wrote:
>
> > Hi, this is my first post to this list so please...
> > I have problems getting this query to work, any ideas?
> >
> > select article.title_text_key,
> > (select on_text.text_value from on_text where
> > on_text.text_key = title_text_key
> > AND NOT title_text_key is NULL
> > AND on_text.lang_id = (select code.id from code, code_group where
> > code.code_group_id = code_group.id
> > AND code_group.description = 'lang' AND code.code_key = 'lang.NO'
> > )
> > )
> > as title_text_value from article where NOT title_text_value is NULL;
> >
> > ERROR: Attribute 'title_text_value' not found
>
> Hallo Andreas,
>
> Relocating your AS clause to the topmost string? BTW, table aliasing
> would make for less typing.
>
> Best of luck!
I don't get it, what do you mean by "Relocating your AS clause to the
topmost string"?
--
Andreas Joseph Krogh <andreak(at)officenet(dot)no>
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-08-08 13:42:17 | Re: Referencing named attribute in where clause doesn't work with 7.1.2? |
Previous Message | Thomas Good | 2001-08-08 13:14:19 | Re: Referencing named attribute in where clause doesn't work with 7.1.2? |