Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Er diagram third normal form

28/10/2021 Client: muhammad11 Deadline: 2 Day

Chapter 7
Logical Database Design

BLCN-534: Fundamentals of Database Systems

Chapter Objectives

Describe the concept of logical database design.
Design relational databases by converting entity-relationship diagrams into relational tables.
Describe the data normalization process.
Perform the data normalization process.
Test tables for irregularities using the data normalization process.
7-*

Logical Database Design

The process of deciding how to arrange the attributes of the entities in the business environment into database structures, such as the tables of a relational database.
The goal is to create well structured tables that properly reflect the company’s business environment.
7-*

Logical Design of Relational Database Systems

(1) The conversion of E-R diagrams into relational tables.
(2) The data normalization technique.
(3) The use of the data normalization technique to test the tables resulting from the E-R diagram conversions.
7-*

Converting E-R Diagrams into Relational Tables

Each entity will convert to a table.
Each many-to-many relationship or associative entity will convert to a table.
During the conversion, certain rules must be followed to ensure that foreign keys appear in their proper places in the tables.
7-*

Converting a Simple Entity

The table simply contains the attributes that were specified in the entity box.
Salesperson Number is underlined to indicate that it is the unique identifier of the entity and the primary key of the table.
7-*

Converting Entities in Binary Relationships: One-to-One

There are three options for designing tables to represent this data.
7-*

One-to-One: Option #1

The two entities are combined into one relational table.
7-*

One-to-One: Option #2

Separate tables for the SALESPERSON and OFFICE entities, with Office Number as a foreign key in the SALESPERSON table.

7-*

One-to-One: Option #3

Separate tables for the SALESPERSON and OFFICE entities, with Salesperson Number as a foreign key in the OFFICE table.
7-*

Converting Entities in Binary Relationships: One-to-Many

The unique identifier of the entity on the “one side” of the one-to-many relationship is placed as a foreign key in the table representing the entity on the “many side.”
So, the Salesperson Number attribute is placed in the CUSTOMER table as a foreign key.
7-*

Converting Entities in Binary Relationships: One-to-Many

7-*

Converting Entities in Binary Relationships: Many-to-Many

E-R diagram with the many-to-many binary relationship and the equivalent diagram using an associative entity.
7-*

Converting Entities in Binary Relationships: Many-to-Many

An E-R diagram with two entities in a many-to-many relationship converts to three relational tables.
Each of the two entities converts to a table with its own attributes but with no foreign keys (regarding this relationship).
In addition, there must be a third “many-to-many” table for the many-to-many relationship.
7-*

Converting Entities in Binary Relationships: Many-to-Many

The primary key of SALE is the combination of the unique identifiers of the two entities in the many-to-many relationship. Additional attributes are the intersection data.
7-*

Converting Entities in Unary Relationships: One-to-One

With only one entity type involved and with a one-to-one relationship, the conversion requires only one table.
7-*

Converting Entities in Unary Relationships: One-to-Many

Very similar to the one-to-one unary case.

7-*

Converting Entities in Unary Relationships: Many-to-Many

This relationship requires two tables in the conversion.
The PRODUCT table has no foreign keys.
7-*

Converting Entities in Unary Relationships: Many-to-Many

A second table is created since in the conversion of a many-to-many relationship of any degree — unary, binary, or ternary — the number of tables will be equal to the number of entity types (one, two, or three, respectively) plus one more table for the many-to-many relationship.
7-*

Converting Entities in Ternary Relationships

The primary key of the SALE table is the combination of the unique identifiers of the three entities involved, plus the Date attribute.
7-*

The Data Normalization Process

A methodology for organizing attributes into tables so that redundancy among the nonkey attributes is eliminated.
The output of the data normalization process is a properly structured relational database.
7-*

The Data Normalization Technique

Input:
all the attributes that must be incorporated into the database
a list of all the defining associations between the attributes (i.e., the functional dependencies).
a means of expressing that the value of one particular attribute is associated with a single, specific value of another attribute.
If we know that one of these attributes has a particular value, then the other attribute must have some other value.
7-*

General Hardware Environment: SALESPERSON and PRODUCT

7-*

Functional Dependence

Salesperson Number is the determinant.
The value of Salesperson Number determines the value of Salesperson Name.
Salesperson Name is functionally dependent on Salesperson Number.
7-*

Salesperson Name

Salesperson Number

Steps in the Data Normalization Process

First Normal Form

Second Normal Form

Third Normal Form

7-*

The Data Normalization Process

Once the attributes are arranged in third normal form, the group of tables that they comprise is a well-structured relational database with no data redundancy.
A group of tables is said to be in a particular normal form if every table in the group is in that normal form.
The data normalization process is progressive.
For example, if a group of tables is in second normal form, it is also in first normal form.
7-*

General Hardware Company: First Normal Form

The attributes under consideration have been listed in one table, and a primary key has been established.
The number of records has been increased so that every attribute of every record has just one value.
The multivalued attributes have been eliminated.
7-*

General Hardware Company: First Normal Form

First normal form is merely a starting point in the normalization process.
First normal form contains a great deal of data redundancy.
Three records involve salesperson 137, so there are three places in which his name is listed as Baker, his commission percentage is listed as 10, and so on.
Two records involve product 19440 and this product’s name is listed twice as Hammer and its unit price is listed twice as 17.50.
7-*

General Hardware Company: Second Normal Form

No Partial Functional Dependencies
Every nonkey attribute must be fully functionally dependent on the entire key of that table.
A nonkey attribute cannot depend on only part of the key.
7-*

General Hardware Company: Second Normal Form

In SALESPERSON, Salesperson Number is the sole primary key attribute. Every nonkey attribute of the table is fully defined just by Salesperson Number.
Similar logic for PRODUCT and QUANTITY tables.
7-*

General Hardware Company: Third Normal Form

Does not allow transitive dependencies in which one nonkey attribute is functionally dependent on another.
Nonkey attributes are not allowed to define other nonkey attributes.
7-*

General Hardware Company: Third Normal Form

Important points about the third normal form structure are:
It is completely free of data redundancy.
All foreign keys appear where needed to logically tie together related tables.
It is the same structure that would have been derived from a properly drawn entity-relationship diagram of the same business environment.
7-*

Candidate Keys as Determinants

There is one exception to the rule that in third normal form, nonkey attributes are not allowed to define other nonkey attributes.
The rule does not hold if the defining nonkey attribute is a candidate key of the table.
Candidate keys in a relation may define other nonkey attributes without violating third normal form.
7-*

Data Normalization Check

The basic idea in checking the structural worthiness of relational tables, created through E-R diagram conversion, with the data normalization rules is to:
Check to see if there are any partial functional dependencies.
Check to see if there are any transitive dependencies.
7-*

7-*

CREATE TABLE SALESPERSON

(SPNUM CHAR(3) PRIMARY KEY,

SPNAME CHAR(12)

COMMPERCT DECIMAL(3,0)

YEARHIRE CHAR(4)

OFFNUM CHAR(3) );

Dropping a Table with SQL

Creating a Table with SQL

DROP TABLE SALESPERSON;

7-*

CREATE VIEW EMPLOYEE AS

SELECT SPNUM, SPNAME, YEARHIRE

FROM SLAESPERSON;

Dropping a View with SQL

Creating a View with SQL

DROP VIEW EMPLOYEE ;

7-*

UPDATE SALESPERSON

SET COMMPERCT = 12

WHERE SPNUM = ‘204’;

The SQL Update, Insert, and Delete Commands

INSERT INTO SALESPERSON

VALUES

(‘489’, ‘Quinlan’, 15, ‘2011’, ‘59’);

DELETE FROM SALESPERSON

WHERE SPNUM = ‘186’;

Use Cases and Examples

3-*

Designing the General Hardware Company Database

7-*

Designing the Good Reading Bookstores Database

7-*

Designing the World Music Association Database

7-*

Designing the Lucky Rent-A-Car Database

7-*

General Hardware Company: Unnormalized Data

7-*

Records contain multivalued attributes.
General Hardware Company: First Normal Form

7-*

General Hardware Company: Second Normal Form

7-*

General Hardware Company: Functional Dependencies

7-*

General Hardware Company: First Normal Form

7-*

Good Reading Bookstores: Functional Dependencies

7-*

World Music Association: Functional Dependencies

7-*

Lucky Rent-A-Car:
Functional Dependencies

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Top Grade Tutor
Fatimah Syeda
WRITING LAND
Top Rated Expert
Professional Accountant
ECFX Market
Writer Writer Name Offer Chat
Top Grade Tutor

ONLINE

Top Grade Tutor

I find your project quite stimulating and related to my profession. I can surely contribute you with your project.

$31 Chat With Writer
Fatimah Syeda

ONLINE

Fatimah Syeda

I have read your project details and I can provide you QUALITY WORK within your given timeline and budget.

$33 Chat With Writer
WRITING LAND

ONLINE

WRITING LAND

I am an elite class writer with more than 6 years of experience as an academic writer. I will provide you the 100 percent original and plagiarism-free content.

$15 Chat With Writer
Top Rated Expert

ONLINE

Top Rated Expert

I have read your project description carefully and you will get plagiarism free writing according to your requirements. Thank You

$25 Chat With Writer
Professional Accountant

ONLINE

Professional Accountant

I have worked on wide variety of research papers including; Analytical research paper, Argumentative research paper, Interpretative research, experimental research etc.

$38 Chat With Writer
ECFX Market

ONLINE

ECFX Market

I am a PhD writer with 10 years of experience. I will be delivering high-quality, plagiarism-free work to you in the minimum amount of time. Waiting for your message.

$37 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Wk4discussion08042020 - Solubility of a salt lab answers - Marching band leadership positions - Independent project 4-5 - Stat-x aerosol fire suppression pdf - Huawei vision and mission 2018 - Cem smart 6 troubleshooting - Cultural Relativism. - Www.fool.com/shop/newsletters/index.aspx - Apple inc in 2012 case analysis - Organizational behavior tools for success 2nd edition pdf download - Monroe motivated sequence example outline - D5-2 - To determine internal resistance of a cell - Apa 7 referencing unimelb - Internal audit swot analysis - Is scoria intrusive or extrusive - Is rest a industry super fund - Order 2597797: Additional - Bituthene 4000 data sheet - How many groups of 10 milliliters are in 1 liter - Satya jewelry sample sale nyc - Identify characteristics associated with successful human services programs - The role of social media in employee staffing - What is straight numeric filing system - Week 4 Discussion - Thank you for arguing chapter summaries - 1 2-dichlorobutane structural formula - Mirror ray diagram worksheet - Ethical responsibilities of the employer - Thinking through the past volume 2 pdf - Family theories foundations and applications pdf - Teens - Marketing - Mathematical economics solved questions pdf - Graphing a function rule worksheet - Sample business rules database design - Finance questions-6 - As nzs 3500.2 2018 - Aws pci dss compliance - Tricking and tripping analysis - Fired heater design calculation - Report a problem apple inc - Schwartz theory of basic values - Movie summary - Similar polygons assignment answers - Tweeters rehearsal studio leatherhead - IOM Future of Nursing Report and Nursing - Loctite 495 home depot mexico - 6 different training methods - Phil 347 critical thinking/ reasoning - Bluefruit ez key keyboard - A theological argument offered by donne in "death be not proud" may be summarized as - National curriculum for early childhood education 2007 pakistan pdf - Amp gauge wiring diagram - Interpersonal communication movie analysis paper - Mpg excel spreadsheet - Titleist 735 cm value - Body composition methods comparisons and interpretation - Classification of medication error as per ncc merp - Feast watson glass finish - Dolce hayes mansion bed bugs - Competetitive advantage - Meditrek login walden - 25 minutes in decimal - Jackie schechter slinky brand - Acetic acid concentration in vinegar lab report - Ammonium hydroxide base or acid - Savile park primary school - New earth mining case study solution - Scope of hotel management system project - Tutorial 4 case problem 1 sky dust stories - Chapter 21 the renaissance in quattrocento italy - A history of the world in 6 glasses sparknotes - How much do you get paid for adf gap year - Enterprise Risk Management - Flexible budget template - Hiragana tenten and maru - How to write an essay on character development - Fizzy song bugsy malone - Rmit bachelor of applied science medical radiations - Features of manufacturing account - An air filled capacitor consists of two parallel plates - In german suburb life goes on without cars essay - Nebosh igc element 1 foundations in health and safety notes - Reply - Residual sum of squares - Literature Evaluation - The following information is available for crane company - Budhill family learning centre - Unit 2 case study - Bruce harvey rio tinto - New earth mining inc - Manage budgets and financial plans assessment answers - Capital lighting & supply - Apex legends too many computers have accessed - Which of the following accounts appear on the balance sheet - Dances with wolves timmons - CFIDQ2 - Public Administration