understanding a nested query

From: Rowan <yaardone(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: understanding a nested query
Date: 2008-06-12 16:21:35
Message-ID: d43d0ef3-4b2d-4be3-adcc-d0a0a57344a0@i76g2000hsf.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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..

any help woudl be greatly appreciated.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adam Dear 2008-06-12 16:33:14 Re: Unable to dump database using pg_dump
Previous Message Tom Lane 2008-06-12 16:20:36 Re: Unable to dump database using pg_dump