GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 202 of 241    Print  
What is nested table in Oracle and and difference between table and nested table

  
Total Answers and Comments: 6 Last Update: May 06, 2008     Asked by: Vikramsingh 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: drk
 
A nested table can be stored as a database column. This means that the entire nested table is contained in one row of a table and each row of the table can contain different nested table

1.      Can be stored in database

2.      can be manipulated using SQL

3.      can be automatically null

4.      individual elements can be accessed using subscript





Above answer was rated as good by the following members:
ds_devi, MAQDOOMAAMER
November 12, 2007 10:04:55   #1  
drk        

RE: What is nested table in Oracle and and difference ...
A nested table can be stored as a database column. This means that the entire nested table is contained in one row of a table and each row of the table can contain different nested table

1. Can be stored in database

2. can be manipulated using SQL

3. can be automatically null

4. individual elements can be accessed using subscript




 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
November 27, 2007 04:24:21   #2  
Anu Ramakrishnan        

RE: What is nested table in Oracle and and difference ...
Nested table is the collection object in oracle. It is also stored in database one in a separate file called store file .This can be used as a column in a table like VARRAY. This is created in a database using create type command .It is used for storing a single dimensional value like VARRAY. The difference between VARRAY and nested table is we can have numerous value single table but in case of VARRAY we can not have more than the defined limit .
 
Is this answer useful? Yes | No
January 13, 2008 20:24:36   #3  
nitingalande Member Since: January 2008   Contribution: 4    

RE: What is nested table in Oracle and and difference between table and nested table

In Oracle nested table are considered one-column database tables. Tables which are having one table as a cell. Nested tables are like one-dimensional arrays stored in a table but we can model nested table to hold multi-dimensional arrays.


 
Is this answer useful? Yes | No
February 19, 2008 17:03:56   #4  
g_sidhu Member Since: August 2007   Contribution: 122    

RE: What is nested table in Oracle and and difference between table and nested table

Nested tables are unbounded.

Initially dense but can become sparse through deletions.

Order is not preserved

Can be indexed

PL/SQL tables are singly dimensioned unbounded

sparse collections of homogeneous elements

Available only in PL/SQL.

Can be indexed


 
Is this answer useful? Yes | No
February 24, 2008 15:04:46   #5  
jagadeesh9 Member Since: February 2008   Contribution: 27    

RE: What is nested table in Oracle and and difference between table and nested table
Table with in a table is called as nested table
NESTED TABLE:
stored outside the table
supports unlimited rows
DMLallowed

VARRAYS:
stored with in the table
supports limited rows
DML not allowed

 
Is this answer useful? Yes | No
May 06, 2008 01:11:14   #6  
krishnaindia2007 Member Since: September 2007   Contribution: 854    

RE: What is nested table in Oracle and and difference between table and nested table
A Table is a basic unit of storage in oracle.

A nested table is a collection type. The main advantage of collections is instead of processing data sequentially we may process all the date in one step.
- It is a collection of rows stored as a column in a table.
- It is a table withing a table.
- There is no restriction on number of rows in a nested table
- There is no restriction on number of columns in a nested table.
- We can not index nested table.
- The nested table is stored as a seperate table and main table maintains a pointer to the nested table as reference.
- Nested table stored data in no particular order
- But when you retrieve data into pl/sql variable it assigns serial number starts with 1
- Intially they are dense you may sparse later.
- Nested tables are unbounded. There is no upper limit.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape