Difference among a primary index and a secondary index, Database Management System

Assignment Help:

What is the difference among a primary index and a secondary index?

Primary Index: A primary index is an ordered file whose records are of fixed length along with two fields. The first field is the ordering key field-known as primary key-of the data file, and the second field is a pointer to a disk block. There is one index entry in the index file for every block in the data file. Each index entry has the value of the primary key field for the first record within a block and a pointer to in which block as its two field values. A major problem along with a primary index is insertion and deletion of records. If we attempt to insert a record in its right positioning the data file, we have to not only move records to make space for the latest record but also change a few index entries.

Secondary Index: A secondary index is also an ordered file along with two fields. The first field is non-ordering field of the data file in which is an indexing field. The second field is either a block pointer or a record pointer. A secondary index on a candidate key looks just such as a dense primary index, except in which the records pointed to through successive values in the index are not stored sequentially.

 


Related Discussions:- Difference among a primary index and a secondary index

Explain what is aggregation, Explain what is Aggregation ? Aggregation...

Explain what is Aggregation ? Aggregation: This is used whenever we intend to show a relationship between an entity and the relationship. There is no provision for this in th

Explain the equijoin, Explain the θ-join and equijoin Refer tables Car ...

Explain the θ-join and equijoin Refer tables Car and Boat which list models of cars and boats and their relevant prices. Assume a customer wants to buy a car and a boat, but sh

Memory components of sga, Problem 1. Describe the Oracle Architecture w...

Problem 1. Describe the Oracle Architecture with a neat labeled diagram, Also explain the individual components of the Architecture. 2. Write about the following Oracle 9i o

The extract statement do in extract datasets, What does the extract stateme...

What does the extract statement do in extract datasets? The data is written to virtual memory by extract commands.

Need point of sale software for pizza restaurant, Project Description: N...

Project Description: Need Point of Sale software for pizza restaurant. Delivery and take out service, client's database, inventory control, order history, last order, order from

Write modified version of transfer that avoids deadlock, Your OS has a set ...

Your OS has a set of queues, each of which is protected by a lock. To enqueue or dequeue an item, a thread must hold the lock associated to the queue. You need to implement an a

What is abstraction, What is abstraction? Abstraction in the object ori...

What is abstraction? Abstraction in the object orientation is a idea that provide opportunity to express necessary properties of object without providing much details of the im

Erd, er diagram on cosmetics.

er diagram on cosmetics.

Database design and documentation, A use case diagram giving a pictorial ov...

A use case diagram giving a pictorial overview of user requirements and brief use case descriptions. As the case study contains only an outline of a business scenario, you will als

Define page, Define page. The database is partitioned into some number ...

Define page. The database is partitioned into some number of fixed-length blocks, which are referred to as pages.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd