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

  Briefly how to make use of indexes such as b+ tree

Summarize briefly how to make use of indexes such as B+ tree or a hash indexes in selection, projection, and join operations?

  What is candidate key and database is a set of one or more

question 1a candidate key isrequired to be unique.used to represent rows in relationships.a candidate to be the primary

  Question 1there are six major types of information systems

question 1there are six major types of information systems which organisations use in their operations. discuss how

  Draw the e/r diagrams for the business rules

Draw the E/R diagrams for the business rules

  Prepare a database design specification

Understand and interpret a set of business rules for a database and create an Enhanced Entity Relationship Diagram that models the requirements accurately

  Write benefits of using dbms to manage data in program

Describe briefly what are the main benefits of using DBMS to manage data in program applications involving extensive data access.

  Create a corresponding xmlschema file

A simple database with a single table contains data concerning car registration. The table contains four fields that store data relating to registration number (unique), make of car, year of manufacture and car colour

  Create stored procedure to updates members balance

Create a stored procedure that updates the members' balance in the membership table by correctly recording the current or outstanding balance for each customer.

  Define database systems and data warehouses

Describe how that firms likely use or should use Management Information Systems, Information Systems and Information Technology as it relates to the various topics covered in the class.

  Write a memorandum to sam jones

Write a memorandum to Sam Jones (CIO) and present your research findings. Your memorandum should be no longer than 500 words.

  You work for centervale apparel a large clothing

you work for centervale apparel a large clothing manufacturing firm. centervale apparel has budgeted 9.7 million for

  List course along with names of students from database table

List the courses (D-code and C-no), along with the names of the students who are currently taking them. List all the courses (D-code and C-no) that John (i.e., S-Name=''John'') got 'A' grade.

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