Consider the following relational schema as part of a university database: Prof(ssn, pname, office, age, sex, specialty, dept_did) Dept(did, dname, budget, num_majors, chair_ssn) Assume the following queries are the most common queries in the workload for this university and they are almost equivalent in frequency and importance: Assume that both B+ trees and hashed indexes are supported by the DBMS and that both single- and multiple-attribute index search keys are permitted. Specify the table and attributes you recommend indexing on. Note: If you can search with an index-only plan you should create a composite search key. Please define more than one index if it is necessary. 1. Find the maximum age of professors in each department. 2. List all the department information for departments with professors in a specified age range. 3. Find the name of professors who have a specified research specialty. 4. List names of the departments with the budget more than 100K. 5. List all the information about professors who are chairpersons of specified department ids.

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question
Can someone please explain to me ASAP??!!
Consider the following relational schema as part of a university database:
Prof(ssn, pname, office, age, sex, specialty, dept_did)
Dept(did, dname, budget, num_majors, chair_ssn)
Assume the following queries are the most common queries in the workload for this university
and they are almost equivalent in frequency and importance:
Assume that both B+ trees and hashed indexes are supported by the DBMS and that both single-
and multiple-attribute index search keys are permitted. Specify the table and attributes you
recommend indexing on.
Note: If you can search with an index-only plan you should create a composite search key. Please define
more than one index if it is necessary.
1. Find the maximum age of professors in each department.
2.
List all the department information for departments with professors in a specified age range.
3. Find the name of professors who have a specified research specialty.
4.
List names of the departments with the budget more than 100K.
5. List all the information about professors who are chairpersons of specified department ids.
Transcribed Image Text:Consider the following relational schema as part of a university database: Prof(ssn, pname, office, age, sex, specialty, dept_did) Dept(did, dname, budget, num_majors, chair_ssn) Assume the following queries are the most common queries in the workload for this university and they are almost equivalent in frequency and importance: Assume that both B+ trees and hashed indexes are supported by the DBMS and that both single- and multiple-attribute index search keys are permitted. Specify the table and attributes you recommend indexing on. Note: If you can search with an index-only plan you should create a composite search key. Please define more than one index if it is necessary. 1. Find the maximum age of professors in each department. 2. List all the department information for departments with professors in a specified age range. 3. Find the name of professors who have a specified research specialty. 4. List names of the departments with the budget more than 100K. 5. List all the information about professors who are chairpersons of specified department ids.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 7 steps

Blurred answer
Knowledge Booster
Dataset
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
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning