Question: Consider the following two relations for Millennium College: STUDENT(StudentID, StudentName, CampusAddress, GPA) REGISTRATION(StudentID, CourseID, Grade) Following is a typical query against these relations: SELECT Student_T.StudentID,

Consider the following two relations for Millennium College:

STUDENT(StudentID, StudentName, CampusAddress, GPA) REGISTRATION(StudentID, CourseID, Grade)

Following is a typical query against these relations:

SELECT Student_T.StudentID, StudentName, CourseID, Grade FROM Student_T, Registration_T WHERE Student_T.StudentID = Registration_T.StudentID AND GPA > 3.0
ORDER BY StudentName;

a. On what attributes should indexes be defined to speed up this query? Give the reasons for each attribute selected. 

b. Write SQL commands to create indexes for each attribute you identified in part a.

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a StudentID in STUDENT because it is a primary key and the index would enforce unique... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Essentials Database Management Questions!