Re: using output of a subselect in LIKE/ILIKE

Поиск
Список
Период
Сортировка
От Jeff Eckermann
Тема Re: using output of a subselect in LIKE/ILIKE
Дата
Msg-id 20020411144818.39555.qmail@web20804.mail.yahoo.com
обсуждение исходный текст
Ответ на using output of a subselect in LIKE/ILIKE  (Rajesh Kumar Mallah <mallah@trade-india.com>)
Список pgsql-sql
SELECT  branch from  branches 
where outstation like 
(SELECT  city from users  join
personal_account_details 
using(userid)  where email='ratans@cal.vsnl.com') ||
'%' 


--- Rajesh Kumar Mallah <mallah@trade-india.com>
wrote:
> Hi  folks,
> 
> I need to do something like :
> 
> SELECT  branch from  branches
> where outstation like
> SELECT  city from users  join
> personal_account_details
> using(userid)  where email='ratans@cal.vsnl.com'
> 
> The above does not work for obvious reasons , but
> can anyone help me
> with the right SQL?
> 
> 
> regds
> Rajesh Kumar Mallah.
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/


В списке pgsql-sql по дате отправления:

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: Postgresql goes into recovery mode ....
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem With A Rule