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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Query

Re: SQL Query

From: Guido Konsolke <Guido.Konsolke_at_triaton.com>
Date: Thu, 2 Oct 2003 10:27:27 +0200
Message-ID: <1065082800.198774@news.thyssen.com>


"Leon" wrote...
> Hi,
>
> I have a database table contains a field that has date like
> 1,3/3,0/30,0/2,1/4,2 , and I am trying to make a sql query to query
> out this record if two numbers seperated by comma, left side is
equal
> to 1 and right site is greater than 0. Is it possible? if so, how
can
> I do it?
>
> Thank you very much for your help.

Hi Leon,

yes, easy...
First hint: have a close look at following functions: INSTR, SUBSTR, SIGN, DECODE. Second hint: they're ordered from innermost to outermost. Third hint: you can use them in the WHERE clause of your query.

Have fun with it.

hth,
Guido

--
Hobbes: How come we play war and not peace?
Calvin: Too few role models.
(Bill Watterson, Calvin and Hobbes)
Received on Thu Oct 02 2003 - 03:27:27 CDT

Original text of this message

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