Difference between Cluster and Non-cluster index?
Answer Posted / hannan
First, you must understand what a cluster is in Oracle.
A cluster is simply a method for storing more then 1 table
on the same block. Normally
-- a block contains data for exactly 1 table. In a cluster
-- you have data from many
tables sharing the same block.
For example -- if you join the data from EMP and DEPT by
DEPTNO frequently -- you might
consider clustering this data by DEPTNO. In that fashion
all of the rows from EMP for
deptno=10 and the row in DEPT for deptno=10 will reside on
the same exact block (one IO
to get all of the data instead of some IO's to EMP and DEPT).
In order to organize data in such an object, we create a
cluster KEY -- deptno in our
above example. We must index this cluster key. This index
on deptno in the cluster is
called a CLUSTER INDEX and is used to locate the blocks that
contain data about deptno=10
| Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
How to locate and take substrings with charindex() and substring() functions?
What is page in sql server?
What are the differences between having and where clause.
What is the sql case statement used for?
What is the command dbcc checkdb used for?
What are the purposes and advantages stored procedure?
Explain SSRS Architecture?
What is a fan-out query in SQL Azure?
You have to store user responses of ‘yes’ and ‘no’ what kind of data type is best suited for this task?
What are page splits? : SQL Server Architecture
what are constraints? Explain different types of constraints? : Sql server database administration
What are various aggregate functions that are available?
After creating the cube, if we added a new column to the oltp table then how you add this new attribute to the cube? : sql server analysis services, ssas
Differentiate between sql temp table vs table variable?
What is an example of a foreign key?