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

  Write a program to keep track of a cd or dvd collection.

write a program to keep track of a CD or DVD collection. This can only work exclusively with either CDs or DVDs since some of the data is different. The data will be stored ina file. The data from the file will be stored ina text file as records. Eac..

  Stack and queue data structure

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

  Explain what is the purpose of database

Explain what is the purpose of Database? The purpose of a database is to store information about certain types of objects. Give an example of two related TABLES.

  Create database of measured meteorological data

You are creating a database of measured meteorological data for use in weather and climate research. Explain a structure type measured_data_t with components site_id_num.

  A prestigious university has recently implemented a

a prestigious university has recently implemented a consolidation strategy that will require it to centralize their

  Design an relational model model of a database

Design an Relational Model (RM) model of a database (DB) that will be useful for each of the chosen enterprises. (Hint: You may choose to translate the 2 ER model designs you created ).

  Prepare a 2- or 3-page paper for this assignmentpick an

prepare a 2- or 3-page paper for this assignment.pick an online database and then describe entities and attributes that

  Analyse a set of data and write a memo

To analyse a set of data, and write a memo, identifying and explaining your insights into the operation of Todd Restaurants.

  Drawing active directory hierarchy in terms of forests

Draw Active Directory hierarchy in terms of forests, trees, domains, organizational units, and sites which are most suitable for this company and their security concerns.

  Design and implement a small database application

Perform the conceptual database design using Entity-Relationship model. You must submit the Entity-Relationship diagram of your database and develop queries in the target DBMS

  Assignment 43 complete problems 1-5 on page 283 of your

assignment 4.3 complete problems 1-5 on page 283 of your textbook. test your sql code using oracle xe. once you are

  Most spreadsheet software like that shown in the

most spreadsheet software like that shown in the accompanying figure includes a kind of analysis tool where users can

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