You are on page 1of 4

Camiguin Polytechnic State College

Balbagon 9100, Mambajao, Camiguin

IM 103 – ADVANCED DATABASE SYSTEM 2


1st Trimister, AY 2021-2022

Student ID : 18-0150 Date of Submission : Octuber 30, 2020


Student Name : Jenecel M. Jamito Teacher : Mr. ken Labadan

Exercise

1. Identify entities and attributes


House - Entity
Date - Attribute
Computer - Entity
Social Security Number - Attribute
Height Order # - Attribute
Product - Entity

2. Types of Relationships

•One to one
•One to many
•Many to many

3. Provide the nomalization steps

Step 1 – Create first normal form(INF)


Step 2 – Define relationship
Step 3 – Make second normal form(2NF)
Step 4 – Third normal form(3NF)
Step 5 – 3 comments
Camiguin Polytechnic State College
Balbagon 9100, Mambajao, Camiguin
4. Normalized this Relationship
a)

Answer:

Student
StudentId CampusAddress

Application
ApplicationID ApplicationDate Qualifications StudentID

b)

Answer:

Vendor
VendorID Address Contact Name

Price Quote
VendorID ItemID Price

ITEM
ItemID Description
Camiguin Polytechnic State College
Balbagon 9100, Mambajao, Camiguin

c)

Answer;

Employee
ID Name Office City Extension
1 Jhon S Toronto 54213
2 Susan P Newyork 59867
3 Jennifer L Chicago 59415

Task
ID Task
1 Planning
2 Marketing
3 Testing
Camiguin Polytechnic State College
Balbagon 9100, Mambajao, Camiguin

Task Table of Employee


Employee ID Task ID
1 1
1 2
1 3
2 2
3 1
3 3

5. Create database, table and insert command base in the given table
Employee above. Note* Insert data in just one command.

CREATE Database DatabaseName;

USE DatabaseName;

CREATE TABLE employee (

ID int,

Name varchar(250),

Office_City varchar(250),

Extension int,

Task varchar (250));

INSERT INTO employee

VALUES (1,'JHON S,

'Toronto',

54213,

'Planning');

You might also like