Question: Using Indexes when formulating queries: Consider the following table ( to answer next 2 questions ) STUDENT ( StudentID , LastName, FirstName, Address, Suburb, PostCode,
Using Indexes when formulating queries: Consider the following table to answer next questions
STUDENT StudentID LastName, FirstName, Address, Suburb, PostCode, State
Note: The attributes StudentID and PostCode are indexed.
Note: The user wants the names of students who live in the suburb of Leeming.
Q Let us assume that is the postcode for Leeming only. Would the query shown below be an efficient way to retrieve the required information? Explain your answer.
SELECT firstname, lastname
FROM student
WHERE suburb 'Leeming';
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
