Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: querry..
select col1, col2
from table1
where (col1 = 'A' and col2 between 'A' and 'E')
or (col1 = 'B' and col2 between 'A' and 'X')
Diana Duncan
TITAN Technology Partners
One Copley Parkway, Ste 540
Morrisville, NC 27560
VM: 919.466.7337 x 316
F: 919.466.7427
E: Diana_Duncan_at_ttpartners.com
"Saurabh Sharma" To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> <saurabhs_at_fcs cc: ltd.com> Fax to: Sent by: Subject: querry.. root_at_fatcity. com 05/31/2001 04:50 AM Please respond to 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:
INET: Diana_Duncan_at_ttpartners.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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 - 07:04:39 CDT
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |