Normalisation Example-empproject

  • Uploaded by: sambashivarao
  • 0
  • 0
  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Normalisation Example-empproject as PDF for free.

More details

  • Words: 338
  • Pages: 2
Normalisation Example

Employee and Projects The table below depicts the requirements for a business consultancy working on local and international projects. Emp-No EmpName

Dept

Manager Proj-id Proj-StartDate

Location

Weeks-on-Project

005

Smith

Marketing

Jones

A B C

12-93 6-94 09-94

Poole Plymouth Portsmouth

11 15 6

007

Bond

Accounts

Bloggs

B D

06-94 06-94

Plymouth Berlin

3 9

009

King

Info Systems Hurne

C

09-94

Portsmouth

10

010

Holt

Accounts

A B D

12-93 06-94 06-94

Poole Belfast Hamburg

21 10 12

Bloggs

Notes: Employees work on a number of projects concurrently. Weeks-on-project represents the number of weeks to date that an employee has spent on a particular project. The employee number, emp-no, and the project identifier, project-id, are unique identifiers. The department manager, manager, is the name of the current manager, i.e., there can only be one manager per department. A project can take place in several locations. You are required to show the first, second and third normal forms. Explain the normalisation process used.

Answer First Normal Form Relations in first normal form represent data as a set of tuples each of which is uniquely identified by a primary key value. The most difficult part of constructing a first normal form set of relations is identifying the primary key for each relation. It is best to select the primary key attributes which reduce the number of attributes that repeat. An attribute repeats when it contains two or more values for each value of the primary key. The following guidelines should produce a set of first normal form relations. 1. 2. 3. 4. 5.

Select a primary key for the set of attributes. Identify the set of attributes which repeats for each value of this primary key. Create a relation from the attributes which are not in the repeating group. Make the key of this relation the key identified in (a). Identify the primary key for the repeating group by taking each value of the primary key in (a) and identifying a unique attribute(s) in the repeating group.

Related Documents

Normalisation
June 2020 2
Normalisation
April 2020 7
Normalisation-exercises
November 2019 20

More Documents from "sambashivarao"

Normalization
November 2019 34
Relationa
November 2019 25
Relational Structure
November 2019 24
Distributed Dbms 1
November 2019 30
Normalisation-exercises
November 2019 20
Er & Normalization Exercises
November 2019 17