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 -> count(*) and nested tables

count(*) and nested tables

From: Brent Collins <brent_at_ti.com>
Date: 1997/12/06
Message-ID: <34898EEB.248334B5@ti.com>#1/1

Is there a simple SQL query to count the total number of rows in a nested table?

My table was set up as follows.

create or replace type tsd_type as object (   time_msec NUMBER,
  value NUMBER);

create type tsd_pair as table of tsd_type;

create table tsd_nested (
  timestamp_date DATE,
  tsds tsd_pair)
  NESTED TABLE tsds STORE AS tsdsnpair;

I would like to know how many total rows are in tsds. Also, can you specify different storage parameters for the nested table and the parent table?

Regards,
Brent Collins
Texas Instruments
IT Services Received on Sat Dec 06 1997 - 00:00:00 CST

Original text of this message

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