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

Home -> Community -> Mailing Lists -> Oracle-L -> Nested table!

Nested table!

From: SRIDHARAN, SAN (SBCSI) <ss4569_at_sbc.com>
Date: Mon, 24 May 2004 20:17:35 -0700
Message-ID: <D363ADA29513DD4C879B4275920327DE078230@cafrfd1msgusr02.itservices.sbc.com>


How can I include a column that exists in a nested table in a where condition? I want to return the filtered nested table without unsetting it. Below is my table.

Table 1

Col1	Col2		Col3 (Nested Table)

=3D=3D=3D=3D =3D=3D=3D=3D =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1 X see below Col3 Row 1

Col3 (Row 1)

colA	colB	ColC	ColD

=3D=3D=3D=3D =3D=3D=3D=3D =3D=3D=3D=3D =3D=3D=3D=3D=3D
1 2 3 4 1 3 4 4 3 4 5 6

This is the type of query I would like to do, but I don't know if it is possible.

SELECT *
FROM Table 1
WHERE Col1 =3D 1
AND Col3.ColA =3D 1

The return from the query should be the following:

1 X (1, 2, 3, 4), (1, 3, 4, 4)=20

Thanks,
San



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Mon May 24 2004 - 22:14:39 CDT

Original text of this message

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