You are on page 1of 5

Assignment # 2

DATABASE MANAGEMENT SYSTEM

Submitted by
Syed Jarar Ali Naqvi
Roll # 11977
BSSE Section 4-A (Morning)

Submitted to
MAM SADAF ANWAR

Dated
17/06/2020

NUML
National University of Modern Languages
Question No 1. Look at the Figures and identify the types of attributes and fill
it. Also give reason in 2 lines that why you chose this particular type.

Simple

Reason: A simple that describes the property of an employee entity.

Multivalued

DERIVED

Reason:
• MULTIVALUED ATTRIBUTE: Attribute that can hold multiple value,
because one employee can have more than one skill.
• Derived ATTRIBUTE: Attribute whose one value is dynamic and derived
from another one.Here Year_employee derived from date attribute.

Simple
Reason: A key attribute can uniquely identify an entity from
entity set.

COMPOSITE

Reason: BECAUSE Flight_ID attribute broken into component parts.

COMPOSITE
SIMPLE

Reason: BECAUSE In student entity table student_ID is an simple


key attribute can uniquely identify an entity from set of an
entity, In flight entity table Flight_ID attribute broken into
component parts flight_number & Date.
Q2) DRAW ER DIAGRAM OF GIVEN SENARIO

Musician– Strong Entity


MUSICIAN
Primary Key: SSN
SSN
Attributes:
NAME
1. ssn: - Social Security Number unique to each person
PHONE
• String with length of 9 characters; no nulls; unique.
ADDRESS

2. name : Name of Artist


• string with any value; no nulls; not unique; single-valued

and simple.

3. phone: Phone number


• string with length of 10 chars;
4. Address: street Address
• String of length 40 chars; nulls not allowed; not unique.

Instrument: Entity INSTRUMENT

Primary Key: ID ID

M_Key
Attributes:
Iname
1.ID: - unique ID to each instruments
• String with length of 8 characters; no nulls; unique.

2.Iname : Name of Instruments


• string with any value; no nulls; not unique.
3. M_Key: Musical keys
• string with length of 10 chars;

Album
Album – Entity :
A_ID
Primary Key: A_ID A_TITLE
Attributes: FORMAT
1.A_ID: - unique Ablum ID Number COPYRIGHT_DATE
• String no nulls; unique.
2.A_TITLE : Name of Album
• string with any value; no nulls; not unique.
3. COPYRIGHT_DATE: Copyright date of Album
• string no null, no unique.

Album – Entity :
Primary Key: TITLE SONG
Attributes: TITLE

1.TITLE : Name of Song AUTHER

• string with any value; no nulls; not unique.


2 auther: Name of auther
• string no null, no unique.

ER-DIAGRAM:

You might also like