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 -> nested tables - SQL

nested tables - SQL

From: Ramachandran, Madhu [NCRTP:3X30:EXCH] <madhuram_at_americasm01.nt.com>
Date: Mon, 17 Mar 2003 18:14:47 -0500
Message-ID: <b55kti$p4l$1@zcars0v6.ca.nortel.com>


all:

i have a column in a table which in turn is a table. using the latest oracle nested table stuff.. what is the SQL
statment to compare values of this field.

eg:

CREATE or REPLACE type my_type
AS OBJECT
        ( type_name INTEGER );

CREATE or REPLACE type nest_table
AS table of my_type;

my table CONTAINER has columns {

        name varchar(32)
        nest   nest_table
      }

now, how do i write a sql to get all rows in table CONTAINER, where type_name is value 0

i tried
select name from CONTAINER where nest.type_name = 0;

it doesnt work..

appreciate any help.

madhu Received on Mon Mar 17 2003 - 17:14:47 CST

Original text of this message

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