Re: novice question about NOTICE:...

From: "Kent R(dot) Rigby" <kent(dot)rigby(at)att(dot)net>
To: "'Lloyd Vancil'" <lev(at)apple(dot)com>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: novice question about NOTICE:...
Date: 2002-04-04 00:01:44
Message-ID: 000501c1db6c$757d6e70$0100a8c0@kentshome.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Not an expert by any means, but I think you need to include the tierdat
table in the from clause like this:

select oid, lang from cgidat, tierdat where cgidat.state = 'testing' and
cgidat.lang = tiredat.lang and tierdat.tier = '0' order by lang;

Kent

-----Original Message-----
From: pgsql-novice-owner(at)postgresql(dot)org
[mailto:pgsql-novice-owner(at)postgresql(dot)org]On Behalf Of Lloyd Vancil
Sent: Wednesday, April 03, 2002 3:37 PM
To: pgsql-novice(at)postgresql(dot)org
Subject: [NOVICE] novice question about NOTICE:...

Tried to search the novice archives and the engine just never
returns an answer. This is probably a pretty common question so I
hope I'll get a quick answer.

I have two tables cgidat and tierdat.
I want to select all occurrences of data in cgidat where
cgidat.state = testing and cgidat.lang = tierdat.lang and
tierdat.tier = 0

so I did

select oid, lang from cgidat where cgidat.state = 'testing' and
cgidat.lang = tiredat.lang and tierdat.tier = '0' order by lang;

I get the expected results but I also get
Adding missing FROM-clause entry for table "tierdat"

Huh?

Thanks
Lloyd

--

lev(at)apple(dot)com

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2002-04-04 02:05:28 Re: Transactions in Postgres
Previous Message Morrison, Trevor (Trevor) 2002-04-03 22:27:37 FW: readline and psql