Search Postgresql Archives

understanding a nested query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux