What normal form is the schema g in

Assignment Help Database Management System
Reference no: EM13509304

(1).The Globetrotters Club is organized into chapters. The president of a chapter can never serve as the president of any other chapter, and each chapter gives its president some salary. Chapters keep moving to new locations, and a new president is elected when (and only when) a chapter moves. This data is stored in a relation G(C,S,L,P), where the attributes are chapters (C), salaries (S), locations (L), and presidents (P). Queries of the following form are frequently asked, and you must be able to answer them without computing a join: “Who was the president of chapter X when it was in location Y ?”

1. List the FDs that are given to hold over G.

2. What are the candidate keys for relation G?

3. What normal form is the schema G in?

4. Design a good database schema for the club. (Remember that your design must satisfy the stated query requirement!)

5. What normal form is your good schema in? Give an example of a query that is likely to run slower on this schema than on the relation G.

6. Is there a lossless-join, dependency-preserving decomposition of G into BCNF?

7. Is there ever a good reason to accept something less than 3NF when designing a schema for a relational database? Use this example, if necessary adding further constraints, to illustrate your answer.

(2).Consider the following BCNF relational schema for a portion of a university database (type information is not relevant to this question and is omitted):

Prof(ssno, pname, o?ce, age, sex, specialty, dept did) Dept(did, dname, budget, num majors, chair ssno)

Suppose you know that the following queries are the ?ve most common queries in the workload for this university and that all ?ve are roughly equivalent in frequency and importance:

List the names, ages, and o?ces of professors of a user-speci?ed sex (male or female) who have a user-speci?ed research specialty (e.g., recursive query process-ing). Assume that the university has a diverse set of faculty members, making it very uncommon for more than a few professors to have the same research specialty.

List all the department information for departments with professors in a user-speci?ed age range.

List the department id, department name, and chairperson name for departments with a user-speci?ed number of majors.

List the lowest budget for a department in the university.

List all the information about professors who are department chairpersons.

These queries occur much more frequently than updates, so you should build whatever indexes you need to speed up these queries. However, you should not build any un-necessary indexes, as updates will occur (and would be slowed down by unnecessary indexes). Given this information, design a physical schema for the university database that will give good performance for the expected workload. In particular, decide which attributes should be indexed and whether each index should be a clustered index or an unclustered index. Assume that both B+ trees and hashed indexes are supported by the DBMS and that both single- and multiple-attribute index search keys are per-mitted.

1. Specify your physical design by identifying the attributes you recommend indexing on, indicating whether each index should be clustered or unclustered and whether it should be a B+ tree or a hashed index.

2. Assume that this workload is to be tuned with an automatic index tuning wizard. Outline the main steps in the algorithm and the set of candidate con?gurations considered.

3. Redesign the physical schema, assuming that the set of important queries is changed to be the following:

List the number of di?erent specialties covered by professors in each depart-ment, by department.

Find the department with the fewest majors.

Find the youngest professor who is a department chairperson.

Reference no: EM13509304

Questions Cloud

What is the after-tax cost of preferred stock : A firm's preferred stock pays an annual dividend of $2, and the stock sells for $65. Flotation costs for new issuances of preferred stock are 5% of the stock value. What is the after-tax cost of preferred stock if the firm's tax rate is 30%?
Identify its primary characteristics : Discuss the type of product the company will offer and identify its primary characteristics.
Obtain how tall is the building : A rock is projected from the edge of the top of a building with an initial velocity of 12.2 m/s at an angle of 53° above the horizontal, How tall is the building
How much is the break-even point in units : Werth Company produces tie racks. The estimated fixed costs for the year are $288,000, and the estimated variable costs per unit are $14. Werth expects to produce and sell 60,000 units at a price of $20 per unit. How much is the break-even point i..
What normal form is the schema g in : Consider the following BCNF relational schema for a portion of a university database (type information is not relevant to this question and is omitted)
Determine the force of air resistance on the package : A 20.0-kg package is dropped from a high tower in still air and is "tracked" by a radar system. Determine the force of air resistance on the package
What is the product cm ratio : Stratford Company distributes a lightweight lawn chair that sells for $120 per unit. Variable expenses are $60.00 per unit, and fixed expenses total $180,000 annually.
Describe the relevance of the eps/ebit chart : Describe the relevance of the EPS/EBIT chart
Post june transactions and balance nominal ledger accounts : Jims nominal ledger accounts and the receivables and payables ledger accounts at 1 June.

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd