From: | Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl> |
---|---|
To: | Scott Frankel <leknarf(at)pacbell(dot)net> |
Cc: | PostgreSQL List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: where clause question |
Date: | 2009-09-04 15:50:38 |
Message-ID: | DF4F7FC1-20E4-4CFB-B8EE-A0F8C0A1789A@solfertje.student.utwente.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 4 Sep 2009, at 15:47, Scott Frankel wrote:
>
> Hello,
>
> Is it possible to perform selects in a where clause of a statement?
>
> Given a statement as follows:
>
> SELECT foo.foo_id, foo.name
> FROM foo, bar
> WHERE foo.bar_id = bar.bar_id
> AND bar.name = 'martini';
> I've explored the "where exists" clause, but it's not supported by
> the application toolkit I'm using. AFAIK, I've only got access to
> where ...
Have you tried a view?
Is that some in-house toolkit you're using? If not, could you tell
what it is so that people can chime in with ways to use that toolkit
to get it do what you want or at least know what toolkit to avoid?
Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.
!DSPAM:737,4aa1375011861997820494!
From | Date | Subject | |
---|---|---|---|
Next Message | james bardin | 2009-09-04 16:26:14 | Verifying a PITR |
Previous Message | Merlin Moncure | 2009-09-04 15:49:42 | Re: where clause question |