Re: understanding a nested query - Mailing list pgsql-general

From Ben
Subject Re: understanding a nested query
Date
Msg-id Pine.LNX.4.64.0806121627360.3347@localhost.localdomain
Whole thread Raw
In response to understanding a nested query  (Rowan <yaardone@gmail.com>)
List pgsql-general
On Thu, 12 Jun 2008, Rowan wrote:

> I would like to create a nested statement but am unsure of the correct
> syntax. My statement shoudl read someting like
>
> SELECT field1, field2 FROM table WHERE name ILIKE xxx AND ( street
> ILIKE xxxx or street2 ILIKE xxxx)
>
> so basically it needs to match name and either street or street 2..

That's not a subquery, it's just grouping clauses. Your SQL matches your
description of what you want. Maybe you want something else?


pgsql-general by date:

Previous
From: Ben
Date:
Subject: Re: PostgreSQL Syntax questions
Next
From: Craig Ringer
Date:
Subject: Re: file system level backup