Download - DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Transcript
Page 1: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

FEDERAL UNIVERSITY OF TECHNOLOGY MINNA, NIGER STATE

Database Design for Capital RecordsBY

GROUP B DATABASE DESIGNERS

OGUNJOBI DANIEL DAMILOLA OKEMIRI CHINEDU JOSEPH

ABUBAKAR NAFISAT AGUYE EBONG RUEBEN DICKSON

IBE AMOS KELECHI OKUNLOLA OLUWASEUN MICHELLE

UKAM VICTOR JOHN DARAMOSU SOFIULLAH ABIOLA

UKPAI KINGSLEY NNAEMEKA BELLO PETER AIMI

BAKARE RIDHWAN OPEYEMI

April 7, 2023 Database Design for Capital Records 1

CIT 314

Page 2: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

April 7, 2023 Database Design for Capital Records 2

Entity-Relationship Model For Capital Records Company

Page 3: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Database Design for Capital Records

A new record company called Capital Records has decided to store

information about musicians who perform on its albums (as well as other

company data) in a database. The company has wisely chosen to hire you as

a database designer being an IT student of the IMT department of the

Federal University of Technology Minna. The specification of user

requirements is as follows:

April 7, 2023 Database Design for Capital Records 3

Page 4: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Specification of Functional Requirements

• Each musician that records at Capital Records has an SSN, a name, an address, and a phone number. Poorly paid musicians often share the same address, and no address has more than one phone.• Each instrument used in songs recorded at Capital Records has a unique

identification number, a name (e.g., guitar, synthesizer, flute) and a musical key (e.g., C, B-flat, E-flat).• Each album recorded on the Capital Records label has a unique identification

number, a title, a copyright date, a format (e.g., CD or MC).• Each song recorded at Capital Records has a title and an author.

April 7, 2023 Database Design for Capital Records 4

Page 5: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Specification of Functional Requirements cont’d

• Each musician may play several instruments, and a given instrument may be played by several musicians.• Each album has a number of songs on it, but no song may appear on

more than one album.• Each song is performed by one or more musicians, and a musician

may perform a number of songs.• Each album has exactly one musician who acts as its producer. A

musician may produce several albums, of course.

April 7, 2023 Database Design for Capital Records 5

Page 6: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Database Design for Capital Records Company

•Musicians: SSN, Name, Address, Phone

•Instrument: Unique Identification number, Name, Musical key

•Album: Unique Identification number, Title, Copyright Date, Format

•Song: Title, Author

April 7, 2023 Database Design for Capital Records 6

Page 7: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Entity Sets Designation

• Musicians: entity set, with attributes; SSN, Name, Two weak entity sets:• Location with attribute; address and• Contact with attribute; Phone

• Instrument: entity set, with attributes; Instr_id, type, key• Album: entity set, with attributes; Alb_id, c_date, format, A_title• Song: entity set, with attributes; S_title, author

April 7, 2023 Database Design for Capital Records 7

Page 8: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Relationship Sets Designation

•home, a one-to-many relationship from contact to location•Producer, a one-to-many relationship from Musicians to album•Belong to, a many-to-one relationship set expressing that many songs may appear in one album•Performs, a many-to-many relationship set between musicians and songs•Plays, a many-to-many relationship set between musicians and instrument which indicates that each musician may play several instruments

April 7, 2023 Database Design for Capital Records 8

Page 9: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

April 7, 2023 Database Design for Capital Records 9

Albumproducerhome Musicians

CAPITAL RECORDS

Alb_id

c_date

format

A_titlelocation

contactphonenumber

address

playsinstrument

SSN name

instr_idtype

key

performs Songs

belongto

S_title author

Page 10: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Tabular Representation of Entities

Musicians

SSN Name

413-22-9802 Bruno Mars

383-19-5141 Britney Spears

575-98-2332 Taylor Swift

212-77-5435 Niall Horan

456-87-5454 Miley Ray Cyrus

Album

Alb_id C_date Format A_title

016 © 2011 CD Singles

041 © 2013 CD Circus

003 © 2010 MC Speak Now

340 © 2014 CD Blackout

055 © 2010 CD Fearless

April 7, 2023 Database Design for Capital Records 10

Page 11: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Tabular Representation of Entities cont’d

Songs

S_Title Author

Locked out of Heaven Bruno Mars

My Baby Britney Spears

A place in the world Taylor Swift

I’m Yours Niall Horan

Kill the lights Britney Spears

Instrument

Instr_Id Type Key

002 Guitar C

011 Saxophone G

037 Trombone A

001 Violin C#

045 Piano F

April 7, 2023 Database Design for Capital Records 11

Page 12: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Tabular Representation of Weak Entities

Contact

SSN Phone number

413-22-9802

+234 706 888 4324

383-19-5141

575-98-2332

212-77-5435

456-87-5454

Location

SSN Address

413-22-98021397 Snowbird LaneDe Witt, NE 68341383-19-5141

575-98-2332

212-77-54354130 Sunset Drive

Jonesboro, AR 7240456-87-5454

April 7, 2023 Database Design for Capital Records 12

Page 13: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Tabular Representation of Relationship Sets Home

SSN Address Phone number

413-22-9802 1397 Snowbird LaneDe Witt, NE 68341

+234 706 888 4324

383-19-5141

575-98-2332

212-77-5435

4130 Sunset DriveJonesboro, AR 7240456-87-5454

Producer

SSN Alb_id [F]

413-22-9802 016

383-19-5141 041

575-98-2332 003

212-77-5435 340

456-87-5454 055

April 7, 2023 Database Design for Capital Records 13

Page 14: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Tabular Representation of Relationship Sets cont’d

Plays

SSN Instr_id [F]

413-22-9802 002

383-19-5141 011

575-98-2332 037

212-77-5435 001

456-87-5454 045

Performs

SSN S_Title [F]

413-22-9802 Locked out of Heaven

383-19-5141 My Baby

575-98-2332 A place in the world

212-77-5435 I’m Yours

383-19-5141 Kill the lights

April 7, 2023 Database Design for Capital Records 14

Page 15: DATABASE MANAGEMENT SYSTEM FOR A START UP RECORD LABEL COMPANY - Capital records

Tabular Representation of Relationship Sets cont’d

Belong to

April 7, 2023 Database Design for Capital Records 15

S_Title Alb_id [F]

Locked out of Heaven 016

My Baby 041

A place in the world 003

I’m Yours 340

Kill the lights 055