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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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