Re: Cross tables Like%

From: Viacheslav N Tararin <taras(at)dekasoft(dot)com(dot)ua>
To: Jason Davis <jasondavis19(at)hotmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Cross tables Like%
Date: 2002-09-09 14:05:06
Message-ID: 3D7CAA92.4050605@dekasoft.com.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

select products.*, manufactors.*
from products, manufactors
where products.manufactor_id=manufactors.manufactor_id
and ( products.product_description like 'param%' or
manufactors.manufactor_description like 'param%');

regards

Jason Davis ?????:

>I have 2 tables, one is products and one is manufactors.
>
>The products table has a col. for Product_descriptions and manufactor_id
>column that is a foriegn key to the manufactors table.
>
>The manufactors table has a manfuactor_description column, for each unique
>Manufactor_id.
>
>I want to search (using like) on both tables (columns:
>Products.Product_description and Manufactors.Manufactor_description).
>
>Can anyone suggest a cross-table %Like% Query for it?
>
>Thanks!
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>http://www.postgresql.org/users-lounge/docs/faq.html
>
>
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2002-09-09 14:50:07 Re: Character translation?
Previous Message Viacheslav N Tararin 2002-09-09 14:01:15 Re: new calculated column