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.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter9: Joining Data From Multiple Tables
Section: Chapter Questions
Problem 9RQ
icon
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning