Explain what the data entries in each of the following index

Assignment Help Database Management System
Reference no: EM13509487

1.Consider the instance of the Students relation shown in Figure , sorted by age: For the purposes of this question, assume that these tuples are stored in a sorted file in the order shown; the ?rst tuple is on page 1 the second tuple is also on page 1; and so on. Each page can store up to three data records; so the fourth tuple is on page 2.

Explain what the data entries in each of the following indexes contain. If the order of entries is significant, say so and explain why. If such an index cannot be constructed, say so and explain why

sid        name login         age     gpa

53831     Madayan       madayan@music 11           1.8

53650     Smith guldu@music        12           2.0

53832    Guldu jones@cs                18           3.4

53666   Jones smith@ee                    19       3.2

53688   Smith smith@math              19       3.8

Figure    An Instance of the Students Relation, Sorted by age

1. An unclustered index on age using Alternative (1).

2. An unclustered index on age using Alternative (2).

3. An unclustered index on age using Alternative (3).

4. A clustered index on age using Alternative (1).

5. A clustered index on age using Alternative (2).

6. A clustered index on age using Alternative (3).

7. An unclustered index on gpa using Alternative (1).

8. An unclustered index on gpa using Alternative (2).

9. An unclustered index on gpa using Alternative (3).

10. A clustered index on gpa using Alternative (1).

11. A clustered index on gpa using Alternative (2).

12. A clustered index on gpa using Alternative (3).

2.Answer the following questions about ?les and indexes: 

1. What operations are supported by the ?le of records abstraction?

2. What is an index on a ?le of records? What is a search key for an index? Why do we need indexes? 

3. What alternatives are available for the data entries in an index? 

4. What is the di?erence between a primary index and a secondary index? What is a duplicate data entry in an index? Can a primary index contain duplicates?

5. What is the di?erence between a clustered index and an unclustered index? If an index contains data records as ‘data entries,’ can it be unclustered?

6. How many clustered indexes can you create on a ?le? Would you always create at least one clustered index for a ?le? 

7. Consider Alternatives (1), (2) and (3) for data entries in an index, as discussed in Section 8.2. Are all of them suitable for secondary indexes? Explain.

Reference no: EM13509487

Questions Cloud

What weight does the scale read : Use the worked example above to help you solve this problem. A woman weighs a fish with a spring scale attached to the ceiling of an elevator, What weight does the scale read
What is the speed of the ice cube at the bottom of incline : A solid ball and a hollow ball, each with a mass of 2 kg and radius of 0.1 m, start from rest and roll down a ramp of length 3 m at an incline of 44°. What is the speed of the ice cube at the bottom of the incline
What is the angular speed of rotation : In an amusement park ride, cars are suspended from L = 4.22 m cables attached to rotating arms at a distance of D = 6.08 m from the axis of rotation. What is the angular speed of rotation
Firms official offices located to have such a designation : Foreign corporation registered in the State of Illinois. Where are this firm's official offices located to have such a designation?
Explain what the data entries in each of the following index : Explain what the data entries in each of the following indexes contain. If the order of entries is signi?cant, say so and explain why. If such an index cannot be constructed, say so and explain why
What is the work done by the ropes force : A rope is used to pull a 3.57 kg block at constant speed 3.58 m along a horizontal floor. What is the work done by the rope's force
What is the length of the ruler in pixels : The pixel coordinates of the two ends of a ruler on your digital photograph are Xtop = 951, Xbottom = 943 AND Ytop = 7, Ybottom = 2781. What is the length of the ruler in pixels
Find which bullet will hit the ground first : Two guns aimed at 10 degrees above the horizontal are fired at the same time, bullet A travels at twice the speed of bullet B. Which bullet will hit the ground first
Maximize the ethical delivery of health care : Define and propose what structure your MCO/HMO will use to maximize the ethical delivery of health care to your patients.

Reviews

Write a Review

Database Management System Questions & Answers

  Describe the importance of using sub queries in a database

1. Extracting and interpreting data can be very valuable to an organization. Describe the importance of using sub queries in a database system. Provide at least two business case scenarios to support your response.

  Complete information-level design for set of requirements

A database at a college is required to support the following requirements. Complete the information-level design for this set of requirements. Determine any constraints you need that are not stated in the problem.

  Taskcreate a database design specification enhanced entity

taskcreate a database design specification enhanced entity relationship diagram eerd and relational data model rdm from

  Relational database concepts and applications

Relational Database Concepts and Applications

  What is recovering database via rollforward

What is Recovering a database via rollforward? What is aim of transaction log? What is contained in transaction log?

  Make a report that identifies the most expensive bicycles

Prepare a report that identifies the five most expensive bicycles. The report should list the bicycles in descending order from most expensive to lsit expensive, the quantity on hand for each, and the mark up percentage for each.

  Explain the datawarehouse and data mining concepts

There are six major types of information systems which organisations use in their operations. Discuss how these information systems support managers in their decision making role Explain the datawarehouse and data mining concepts using appropria..

  Create a set of dependency diagrams for the abs database

Consider a case that is not described above, but could happen in the business of the ABS. Please explain the case and why it might occur and based on the case you proposed, modify your design of the ABS database accordingly.

  Create a decision table that describes movement of inventory

Name four attributes that you can use to define a data flow in the grocery inventory information system.

  Write a program to keep track of a cd or dvd collection.

write a program to keep track of a CD or DVD collection. This can only work exclusively with either CDs or DVDs since some of the data is different. The data will be stored ina file. The data from the file will be stored ina text file as records. Eac..

  What are the data entities of this enterprise

Consider a student club or organization in which you are a member. What are the data entities of this enterprise? List and define each entity

  Draw an er diagram for database scenario

Draw an ER diagram for database scenario. Design a set of 3NF tables for your database scenario.

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