Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following table of all the ILLINOlS residents. CREATE TABLE Persons( PersonID int, LastName varchar (255) FirstName varchar(255), Address varchar (255), City varchar (255)

image text in transcribed

Consider the following table of all the ILLINOlS residents. CREATE TABLE Persons( PersonID int, LastName varchar (255) FirstName varchar(255), Address varchar (255), City varchar (255) Age integer with the following indexes. INDEX1: Clustered sparse B+ tree index on (LastName, FirstName) INDEX2: Clustered dense hash table index on (LastName, FirstName) INDEX3: Unclustered hash table index on Age INDEX4: Unclustered B+ tree index on Age INDEX5: Unclustered hash table index on City For each of the given predicates, describe which index is the best to pick and why it's the best? Note that you can choose no index and do a full scan on the table if you think it will outperform using any indexes. 1. Age > 25 AND Age40 (3 points) 2. FirstName'Abdu' AND LastNameAlawini' (3 points) 3. City 'Valley City' (4 points) For part 3, note that Valley City is the least populated city in Illinois. Consider the following table of all the ILLINOlS residents. CREATE TABLE Persons( PersonID int, LastName varchar (255) FirstName varchar(255), Address varchar (255), City varchar (255) Age integer with the following indexes. INDEX1: Clustered sparse B+ tree index on (LastName, FirstName) INDEX2: Clustered dense hash table index on (LastName, FirstName) INDEX3: Unclustered hash table index on Age INDEX4: Unclustered B+ tree index on Age INDEX5: Unclustered hash table index on City For each of the given predicates, describe which index is the best to pick and why it's the best? Note that you can choose no index and do a full scan on the table if you think it will outperform using any indexes. 1. Age > 25 AND Age40 (3 points) 2. FirstName'Abdu' AND LastNameAlawini' (3 points) 3. City 'Valley City' (4 points) For part 3, note that Valley City is the least populated city in Illinois

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions