Music Library System 577796

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Lab Manual

Project Title: Music Library System

Submitted To: Mam Mamoona Jabbar

Submitted By: Ahmad Hassan

Roll No: 577796 / 21847

Semester: BS IT 3rd Semester

Session: 2021-2025

Course Title: Database Management Systems

Course Code: CSI-408


Music Library System

Project Statement:

Consider a music library system where the following are the main requirements:

1. Music library take record of all candidates.


2. CD takes the record of different playlists.
3. Customer take record of specific customer.
4. Admin with his details.
5. And also, the record of instruments use in the music library.

Entity Types and Attributes

 Music Library: Lib ID, Name, Address, Phone No


 CD: ID, Song Name, Artist, Lib ID
 CUSTOMER: Cust ID, Name, Address, Phone No, Song Name
 Admin: ID, Name, Address, Phone No
 INSTRUMENT: Inst Name, Serial No, Inst Type, Lib ID

Relationships

 Is purchased by: It is a relationship between CDS and CUSTOMER. Where a single


customer take single CDS and CDS can take by a single customer.
o From CDS to CUSTOMER is mandatory one.
o From CUSTOMER to CDS is mandatory one.

 Contains: It is a relationship between CDS and MUSIC LIBRARY. Where one CDS is
goes to single music library and a library can take more than one CDS.
o From CDS to MUSIC LIBRARY is mandatory one.
o From MUSIC LIBRARY to CDS is mandatory many.

 Has: It is a relationship between INSTRUMENT and MUSIC LIBRARY. Where a


music library has more than one instruments and instrument can take by only one MUSIC
LIBRARY.
o From INSTRUMENT to MUSIC LIBRARY is mandatory one.
o From MUSIC to INSTRUMENTN is mandatory many.

 Has: It is a relationship between MUSIC LIBRARY and ADMIN. Where music library
has only one admin and an admin is belonged to only one music library.
o From MUSIC LIBRARY to ADMIN is mandatory one.
o From ADMIN to MUSIC LIBRARY is mandatory one.

E-R Diagram of Music Library System


MS-Access

Create Music Library System in MS-Access

1. Creating Database with named “Music Library System”


2. Creating related tables

 Table of CD

Design view of CD Data Sheet view of CD

 Table of MUSIC LIBRARY

Design view of MUSIC LIBRARY Data sheet view of MUSIC LIBRARY

 Table of ADMIN

Design View of ADMIN Data sheet view of ADMIN


 Table of CUSTOMER

Design view of CUSTOMER Data sheet view of CUSTOMER

 Table of INSTRUMENT

Design view of INSTRUMENT Data sheet view of INSTRUMENT

Queries of Music Library System

This SQL query helps to retrieve all the attributes of the table using SELECT command.

 CD Query

SQL view of CD Output Query


 MUSIC LIBRARY Query

SQL view of LIBRARY Output Query

 ADMIN Query:

SQL view of ADMIN Output Query

 CUSTOMER Query

SQL view of CUSTOMER Output Query

 INSTRUMENT Query

SQL view of INSTRUMENT Output Query


Forms of Music Library System

CD Form MUSIC LIBRARY Form

ADMIN Form INSTRUMENT Form

CUSTOMER Form
Reports of Music Library System

 CD Report

 MUSIC LIBRARY Report

 ADMIN Report

 CUSTOMER Report
 INSTRUMENT Report

Relational Database Design of Music Library System

Here the Relational Database Diagram is created in MS access using relationship with above
mentioned tables and attributes.

You might also like