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?

  Use of dictionary-managed tablespaces in database

our current database uses dictionary-managed tablespaces. In running various performance tuning scripts, you have discovered that one of these tablespaces seems to have run out of space long before you calculated that it would.

  Compose conceptual data modeling techniques

Prepare database design documents using the data definition, data manipulation, and data control language components of the SQL language.

  Write select statement which returns three columns

Write a SELECT statement which returns three columns: VendorName, InvoiceCount, and InvoiceSum. InvoiceCount is the count of the number of invoices, and InvoiceSum is the sum of the InvoiceTotal column.

  Database containing student info

Create a database containing student info (name, age, ect.).Find a way to allow the user to search the database using a students name and allowing them to delete that students information.Use binary input/output to take the input from the user for th..

  Recognize level within a database system

Recognize level within a database system (user, programmer of application software, and designer of the DBMS software) at which each of the following concerns or activities occur.

  Use of the internet and web continues to increase

As the use of the Internet and web continues to increase, students should be familiar with Internet shopping and the information security related to it. This should be done by answering the issues below related to a shopping of a product via the I..

  Write sql statement to retrieve all data sorted in order

Generate the view called RepairSummary which shows only RepairInvoiceNumber, TotalCost, and TotalPaid. Illustrate the SQL statement to retrieve all RepairSummary data sorted by TotalCost.

  You are to design a database for an insurance company the

you are to design a database for an insurance company. the data will include information about customers name address

  Determine the names of all tracks from table

All primary keys are underlined. All foreign keys have same name as primary key that they are referencing. Determine the names of all Tracks which are more than 10 minutes (600,000 ms) long.

  Consider the scenario from exercise 2.4 where you designed

Consider the scenario from Exercise 2.4, where you designed an ER diagram for a company database. Write SQL statements to create the corresponding relations and capture as many of the constraints as possible. If you cannot capture some constraints, e..

  Analyse and comprehend a provided er diagram

Analyse and comprehend a provided ER diagram and Database Schema and to implement a database based on the provided ER diagram and Database Schema

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