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

ER Diagram, Soccer player ER Diagram to Relational database schema

Soccer player ER Diagram to Relational database schema

Database problem in wordpress, Project Description: I am having a random...

Project Description: I am having a random problem with my Wordpress site. If I click on "Publish" and "Add new", it takes me to a 404 page not found of /wp-admin/post.php (th

Explain data models namely relational network - hierarchical, Explain the t...

Explain the three data models namely relational, network and hierarchical and evaluate their relative advantages and disadvantages. Hierarchical Model: In hierarchical model, da

Hangman, a method named WonGame that checks each letter in the word is matc...

a method named WonGame that checks each letter in the word is matched by its label

What is horizontal fragmentation, What is horizontal fragmentation? Hor...

What is horizontal fragmentation? Horizontal fragmentation divides the relation by assuming every tuple of r to one or more fragments

Illustrate how customer relationship is promoted, FitAll Ltd is a company t...

FitAll Ltd is a company that manufactures clothes. Its processes are manual and there are stand-alone Information Systems that aid to manage them. The Information Systems were purc

State about the advance object design, ADVANCE OBJECT DESIGN Introduct...

ADVANCE OBJECT DESIGN Introduction Analysis is the initial step of the OMT methodology. It is apprehensive with devising a precise, concise, correct and understandable mo

Design of a database, Ask questioYou are the database administrator in a un...

Ask questioYou are the database administrator in a university. You have been tasked to come up with a new database for the University. Using the stages in Database Life Cycle come

DBMS, what is specialization?

what is specialization?

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