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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Need Help for an intelligent query

Re: Need Help for an intelligent query

From: Sohn Matthias <sohn_at_jobpilot.de>
Date: 2000/05/10
Message-ID: <39190E58.3B51CD21@jobpilot.de>#1/1

hi Julien,

try

select a.name, decode(FLOOR (a.points/200), 0, 'No', 'Yes') from tabnam a;

bye, matthias

Julien Bellorgey wrote:

> Hello,
>
> Maybe this question will seem too easy to answer, but is there a way to
> create a query that can generate values depending on the values of other
> fields (an example is provided).
> I know how to do it with Access, but I do not know with Oracle 7.
> Thank you very much if somebody can help me.
>
> Regards,
>
> Julien
>
> -------------------------------------
> For example:
>
> Table A
>
> Name, Age, Points
> Jim 25 150
> Joe 20 300
> Scott 30 500
>
> For each person, the query must indicate if the points are more than 200 or
> not.
> The result of the query must be :
>
> Jim No
> Joe Yes
> Scott Yes
Received on Wed May 10 2000 - 00:00:00 CDT

Original text of this message

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