Question

Relational Database Design Theory, please answers ALL parts because they are related to each other, and I can't separate it into different questions. Please help!

PHLogger contact address street city pcode state
CREATE TABLE PHLogger( phlid name address_street VARCHAR(50) NOT NULL, address_city address_state CHAR(2) NOT NULL, address_p

By looking at the PHLogger table:

A. List all non-trivial functional dependencies.


B. What is the highest normal form the PHLogger table is in currently?

C. The external consulting experts at DBInstructor, Inc., have noticed that city and state of an address can be inferred by its postal code (zip code). What new functional dependencies would be introduced by codifying this rule?


D. What is the highest normal form the PHLogger table is in after adding the new functional dependencies?


E. Decompose the PHLogger table into multiple tables to the highest normal form possible.


F. After decomposition, what is the highest normal form design that you could produce that is lossless and dependency preserving[3NF/BCNF]? Explain.

PHLogger contact address street city pcode state
CREATE TABLE PHLogger( phlid name address_street VARCHAR(50) NOT NULL, address_city address_state CHAR(2) NOT NULL, address_pcode VARCHAR(10) NOT NULL, PRIMARY KEY (phlid), FOREIGN KEY (phlid) REFERENCES User (phlid) ON DELETE CASCADE VARCHAR(8), VARCHAR(50) NOT NULL, VARCHAR(20) NOT NULL,
0 0
Add a comment Improve this question Transcribed image text
Answer #1

A. non-trivial functional dependencies:

            address_pcode \rightarrow address_city, address_state

In the above given, address_city and address_state can be inferred by address_pcode.

B. The highest normal form the PHLogger table is in currently is 2NF.

its not in 3NF as address_city and address_state can be inferred by address_pcode which is neither superkey nor prime key attribute i.e., transitive dependency exists (i.e., phlid\rightarrowaddress_pcode and address_pcode\rightarrow address_state, address_city).

C.

phlid name address_street address_pcode

phlid\rightarrow name, address_street,address_pcode

address_pcode\rightarrowaddress_city,address_state

address_pcode address_city address_state

D. The highest normal form the PHLogger table is in after adding the new functional dependencies is Boyce-Codd Normal Form (BCNF).

as its in 3NF and phlid is superkey in the relation name, address_street, address_pcode and address_pcode is the superkey in relation address_city, address_state.

phlid\rightarrow name, address_street,address_pcode

address_pcode\rightarrowaddress_city,address_state

E.   PHLogger

phlid name address_street address_pcode

      PCode

address_pcode address_city address_state

F. After decomposition, the highest normal form design that you could produce that is lossless and dependency preserving is BCNF.

After decomposition, its in 3NF

and

phlid is superkey in the relation name, address_street, address_pcode and address_pcode is the superkey in relation address_city, address_state.

phlid\rightarrow name, address_street,address_pcode

address_pcode\rightarrowaddress_city,address_state

Add a comment
Know the answer?
Add Answer to:
Relational Database Design Theory, please answers ALL parts because they are related to each other, and I can't separate it into different questions. Please help! By looking at the PHLogger tab...
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
  • SQL Query Question: I have a database with the tables below, data has also been aded...

    SQL Query Question: I have a database with the tables below, data has also been aded into these tables, I have 2 tasks: 1. Add a column to a relational table POSITIONS to store information about the total number of skills needed by each advertised position. A name of the column is up to you. Assume that no more than 9 skills are needed for each position. Next, use a single UPDATE statement to set the values in the new...

  • Help In Database: Next comes the data entry: Make up data for your database, or find...

    Help In Database: Next comes the data entry: Make up data for your database, or find real data. You can enter the data with INSERT statements, but it is much easier to use PhpAdmin. It has a form where you can type the data directly. Alternatively, you can use PhpAdmin to import CSV data (comma-separated values), which you can export from Excel. Include at least 3 rows in each of the entity relations, and as many rows as you need...

  • database and sql problme THE QUESTIONS 3, 4,5 and 6 REFER TO THE RELATIONAL TABLES LISTED...

    database and sql problme THE QUESTIONS 3, 4,5 and 6 REFER TO THE RELATIONAL TABLES LISTED BELOW CREATE TABLE Department ( DECIMAL(5) VARCHAR(30) CHAR(5) DATE NOT NULL NOT NULL NOT NULL * Department number /*Department name * Department manager number */ /Manager start date DNumber DName Manager MSDate CONSTRAINT Department_PK PRIMARY KEY(DNumber) CONSTRAINT Department_CK UNIQUE(DName) CREATE TABLE DeptLocation DECIMAL(5) VARCHAR(50) NOT NULL NOT NULL DNumber * Department number */ * Department location */ Address CONSTRAINT DeptLocation_PK PRIMARY KEY(DNumber, Address) CONSTRAINT...

  • I NEED TO WRITE THE FOLLOWING QUERIES IN MYSQL (13)Next, grant to a user admin the read privileges on the complete descr...

    I NEED TO WRITE THE FOLLOWING QUERIES IN MYSQL (13)Next, grant to a user admin the read privileges on the complete descriptions of the customers who submitted no orders. For example, these are the customers who registered themselves and submitted no orders so far. The granted privilege cannot be propagated to the other users. 0.3 (14)Next, grant to a user admin the read privileges on information about the total number of orders submitted by each customer. Note, that some customers...

  • Create three or more MySQL Data Control language (DCL) Statements using the Youth League Database. 1....

    Create three or more MySQL Data Control language (DCL) Statements using the Youth League Database. 1. A Create new user statement for the database 2. A statement that grants privileges to the new user 3. A statement that revokes privileges 1. A SQL Text File containing the SQL commands to create the database, create the table, and insert the sample test data into the table. 2. A SQL Text File containing the DCL SQL Statements. eted hemas Untitled Limit to...

  • I need help with the following SQL query for a company database (script given below). The...

    I need help with the following SQL query for a company database (script given below). The name of the Department. The number of employees working in that department. The number of different projects controlled by this department. The name of the project controlled by this department that has the maximum number of employees of the company working on it. The number of the above project. The cumulative sum of the number of employees of the company working on the projects...

  • Connect to mySQL DBMS, open a SQL script file, navigate to CityJail.sql file and execute it...

    Connect to mySQL DBMS, open a SQL script file, navigate to CityJail.sql file and execute it to create tables and populate with the supplied data. If there are any errors in the script fix them. It is your job to find the errors and correct them. This is important. You will need correct data for future exercises in this module. Then answer all questions. Write the answer below each question then take screen shot of the result. This script builds...

  • --Create procedure for GetPartNums in SQL --GetPartNums- retrieve all part nums from the database --Database if...

    --Create procedure for GetPartNums in SQL --GetPartNums- retrieve all part nums from the database --Database if db_id('TestPremierProducts') is not null begin use master alter database TestPremierProducts set SINGLE_USER with rollback immediate drop database TestPremierProducts end create database TestPremierProducts go USE TestPremierProducts; go /* create the tables */ CREATE TABLE Rep (RepNum int Identity(1,1), LastName VARCHAR(15), FirstName VARCHAR(15), Street VARCHAR(15), City VARCHAR(15), State VARCHAR(2), Zip VARCHAR(5), Commission MONEY, Rate DECIMAL(3,2), PRIMARY KEY (RepNum)); go CREATE TABLE Customer (CustomerNum int Identity(1,1) PRIMARY...

  • Program: MYSQL (please show screenshots of the solution)  Ill give good rating! Define a view named TopLevelCust...

    Program: MYSQL (please show screenshots of the solution)  Ill give good rating! Define a view named TopLevelCust that consists of the number, name, address, balance and credit limit of all customers with credit limits that are greater than or equal to $5,000. Address is defined as street, city, state and zip. Concatenate these into one field named Address.   A. Type in your view construct here: B. Write a query to retrieve the number and name of all customers in the TopLevelCust...

  • DATABASES You are required to design and implement a relational database to help the local community...

    DATABASES You are required to design and implement a relational database to help the local community center better serve the residents in your neighborhood. Database Specifications: In your preliminary analysis, you have determined the following basic facts about the community center and the services it provides to the residents in the neighborhood: - The community center serves multiple areas which fall into different zip codes.  - The community center provides collaborative family based care services. An immediate family is...

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