Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: querry..

RE: querry..

From: Bala, Prakash <prakash.bala_at_cingular.com>
Date: Thu, 31 May 2001 09:11:21 -0700
Message-ID: <F001.00315910.20010531063740@fatcity.com>

Saurabh,  

If you know your exact conditions and they don't change, you can write a select statement representing each combination and finally have a 'union' of all your sqls.  

HTH
Prakash

-----Original Message-----

Sent: Thursday, May 31, 2001 4:50 AM
To: Multiple recipients of list ORACLE-L

hi list,  

how can i select two columns from a table based on condition that they are selected in specified combinations.  

let me..
table 1 has 2 columns col1, col2. both cols have values , say, alphabets. a,b,c,d,e,f,...
i'want to select like  

FOR VALUE OF COL1 IN A, col2 must fetch only between A-E for value of col1 in B, col2 must be between A-X
--

 and so on..  

i want to define this combination, so i should get only these pair of values.  

any suggestions.
thanks.  

saurabh

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Bala, Prakash
  INET: prakash.bala_at_cingular.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu May 31 2001 - 11:11:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US