Question

Intro to database systems question:

Question2 (20 points, 5 points each) Consider the following relational schema as part of a university database Prof(sin, pnam

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. Since we want to find maximum age of professor in each department, there should be multiple attribute indexing of professor based on department code and age with clustering index with increasing order of department code and within same department code, decreasing order of age is better choice , so that first element in index for each department code will have the professor with maximum age. Since we have range query of finding maximum age, so B+ tree is better choice.

2. For this query build non-clustering index based on speciality since it does not make sense to physically store the records in sorted order of research speciality. Also since we want to perform search based on user specified value of research interest, hence hash function is better indexing which will help to quickly finding element satisfying the query .

3. Build non-clustering index based on budget since making clustered index on budget does not make sense(why to physically store the data in sorted order of budget). Also since we want to find all department with budget more than 100K, so this is range query and hence using B+ tree for indexing Budget is better choice.

4. Build non-clustering index on department name(since clustering is better to do for department id), and since we want to search department whose name matches with department name specified by user, hash index is better choice.

Please comment for any clarification.

Add a comment
Know the answer?
Add Answer to:
Intro to database systems question: Question2 (20 points, 5 points each) Consider the following relational schema as part of a university database Prof(sin, pname, o_ce, age, sex, specialty, dept did...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT