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

Home -> Community -> Usenet -> c.d.o.misc -> SQL Question -- Stratifying Data

SQL Question -- Stratifying Data

From: Ken Moore <kmoore_at_external.umass.edu>
Date: 1997/07/31
Message-ID: <33E09A0E.5F39@external.umass.edu>#1/1

I was wondering what the best method is to allow a user to create a query which returns stratified data from continuous numeric data. For example, say I have a table with a value for age. I want to write a select statement which returns four age categories from all the possible age values in the table. As these categories will change frequently, I don't want to create and store an age strata column in the table.

I know that the DECODE function will allow me to categorize interval data, but I need a method to do the same for data which may be contained within a continuous range.

Thanks for your help Received on Thu Jul 31 1997 - 00:00:00 CDT

Original text of this message

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