0% found this document useful (0 votes)
81 views5 pages

Assignment # 2 Database Management System: National University of Modern Languages

This document is an assignment submission for a Database Management Systems course. It contains two questions regarding entity relationship diagrams. The first question asks to identify attribute types such as simple, multivalued, composite, and derived in various entity examples. The second question asks to draw an ER diagram for a given scenario about musicians, instruments, albums, and songs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views5 pages

Assignment # 2 Database Management System: National University of Modern Languages

This document is an assignment submission for a Database Management Systems course. It contains two questions regarding entity relationship diagrams. The first question asks to identify attribute types such as simple, multivalued, composite, and derived in various entity examples. The second question asks to draw an ER diagram for a given scenario about musicians, instruments, albums, and songs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy