Software Document
Software Document
Name ID
Besufikad Balcha UGE/27679/14
Abdisa Reta UGE/ 27671/14
Yared Solomon UGE/24110/13
Noah Getachew UGE/27722/14
Relationships:
Key Constraints:
Cardinality Constraints:
Assumptions:
Key Cardinality
Entity Attributes Constrai Constraint
nts s
SSN, Musicia
SSN
Name, n plays
Musicia (Prim
Address, Instrum
n ary
PhoneNum ent
Key)
ber (M:N)
Musicia
Name
n plays
Instrum (Prim
Name Instrum
ent ary
ent
Key)
(M:N)
Title, Albu
Album
CopyrightD mID
contain
Album ate, (Prim
s Song
Format, ary
(1:M)
AlbumID Key)
Song is
Title
perform
Title, (Prim
Song ed by
Author ary
Musicia
Key)
n (M:N)
ER Diagram
Place Telephone
Phone no
address
Home
Album identifier
name speed
Copyright date
Lives
ssn t
Musicians Producer
Album
Appears
Perform
Plays
Instrument id key
Instrument
Songs
Author
Song id
Name
title
Explanation of ER Diagram:Explanation of ER Diagram:
The ER diagram for the Nahom Records database consists of four entities:
Musician, Instrument, Album, and Song. The entities are connected by four
relationships: Musician plays Instrument, Album contains Song, Song is performed
by Musician, and Album is produced by Musician.
The Musician entity has the following attributes: SSN, Name, Address, and
PhoneNumber. The SSN attribute is the primary key of the Musician entity. This
means that each musician must have a unique SSN.
The Instrument entity has the following attribute: Name. The Name attribute is
the primary key of the Instrument entity. This means that each instrument must
have a unique name.
The Album entity has the following attributes: Title, CopyrightDate, Format, and
AlbumID. The AlbumID attribute is the primary key of the Album entity. This
means that each album must have a unique AlbumID.
The Song entity has the following attributes: Title and Author. The Title attribute is
the primary key of the Song entity. This means that each song must have a unique
title.
The Musician plays Instrument relationship is a many-to-many relationship. This
means that a musician can play many instruments, and an instrument can be
played by many musicians.
The Album contains Song relationship is a one-to-many relationship. This means
that an album can contain many songs, but a song can only be on one album.
The Song is performed by Musician relationship is a many-to-many relationship.
This means that a song can be performed by many musicians, and a musician can
perform many songs.
The Album is produced by Musician relationship is a one-to-one relationship. This
means that an album is produced by exactly one musician, and a musician can
produce many albums.