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 -> Compiste keys, large sets, interactive scrolling

Compiste keys, large sets, interactive scrolling

From: Bernard Dhooghe <nomen_at_ibm.net>
Date: Wed, 27 Jan 1999 01:28:14 -0500
Message-ID: <36AEB1FE.6B65@ibm.net>


Suppose a table with columns:

    col1 col2 col3 col4 col5 col6 ...

    where these columns by the definition of the table, are not allowed to contain NULL.

    A composite key key_comp is made of number of these columns:

      key_comp = (col3,col4,col1,col2,col7)

    Suppose the cols are all character, the logical composed key would be the

    concatenation of the columns.

    Can Oracle server handle the queries (written in pseudo-sql):

       select * from table where key_comp > (?,?,?,?,?)

    or

        select * from table where key_comp <= (?,?,?,?,?)

    or

       select * from table where key_comp >= (?,?,?,?,?)

    or

       select * from table where key_comp < (?,?,?,?,?)

    where the result set is "big" f.ex. 3 million rows of a table with 6 million rows and the user wants to scroll through the set (page by page, f.ex. 20 lines) and have an optimal answer time (that fills without delay the screen).

    How has the query to be written in Oracle to achieve it?

    Bernard Dhooghe Received on Wed Jan 27 1999 - 00:28:14 CST

Original text of this message

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