pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: Rajesh Kumar Mallah <mallah@trade-india.com>
To: PostgResql SQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: using output of a subselect in LIKE/ILIKE
Date: Thu, 11 Apr 2002 07:48:18 -0700 (PDT)
Message-ID: <20020411144818.39555.qmail@web20804.mail.yahoo.com> (raw)
In-Reply-To: <3CB597EC.6AE67F76@trade-india.com>

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/



view thread (3+ messages)  latest in thread

Message-ID: <20020411144818.39555.qmail@web20804.mail.yahoo.com>
Permalink:  ../20020411144818.39555.qmail@web20804.mail.yahoo.com/
Also on:    postgresql.org/message-id/20020411144818.39555.qmail@web20804.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jeff_eckermann@yahoo.com, mallah@trade-india.com
  Subject: Re: using output of a subselect in LIKE/ILIKE
  In-Reply-To: <20020411144818.39555.qmail@web20804.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox