Consider the following two relations for Millennium College:STUDENT(StudentiD StudentName,CampusAddress, GPA)REGISTRATION(Student!D CourseiD Grade)Following is a typical query against these relations:SELECT Student_T.StudentiD, StudentName,CourseiD, GradeFROM Student_T, Registration_TWHERE Student_T.StudentiD =Registration_ T.StudentiDANDGPA>3.0ORDER BY Student Name;a. On what attributes should indexes be defined to speedup this query? Give the reasons for each attributeselected.b. Write SQL commands to create indexes for each attribute you identified in part a.
Consider the following two relations for Millennium College:STUDENT(StudentiD StudentName,CampusAddress, GPA)REGISTRATION(Student!D CourseiD Grade)Following is a typical query against these relations:SELECT Student_T.StudentiD, StudentName,CourseiD, GradeFROM Student_T, Registration_TWHERE Student_T.StudentiD =Registration_ T.StudentiDANDGPA>3.0ORDER BY Student Name;a. On what attributes should indexes be defined to speedup this query? Give the reasons for each attributeselected.b. Write SQL commands to create indexes for each attribute you identified in part a.
Chapter9: Joining Data From Multiple Tables
Section: Chapter Questions
Problem 9RQ
Related questions
Question
Consider the following two relations for Millennium College:
STUDENT(StudentiD StudentName,
CampusAddress, GPA)
REGISTRATION(Student!D 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
ANDGPA>3.0
ORDER BY Student Name;
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.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you