2. Introduction to CD store
A CD management store is a retail establishment that specializes in
selling and managing compact discs (CDs). These stores typically
offer a wide selection of music, movies, and other media on CD
format. The staff at these stores may provide recommendations,
help customers find specific titles, and offer information on new
releases. CD management stores may also offer services such as CD
repair, cleaning, and trade-ins. In recent years, many CD
management stores have expanded their offerings to include vinyl
records, DVDs, and Blu-rays.
3. Why we choose MS SQL
Storing data in MS SQL for a CD store management system can offer several benefits,
including:
1. Relational database management: MS SQL is a powerful relational database management
system, which means it can efficiently manage large volumes of data and ensure data
consistency and accuracy.
2. Scalability: MS SQL can handle large amounts of data and can scale easily as the CD store
grows, making it a suitable choice for businesses that expect to expand their operations over
time.
3. Security: MS SQL provides robust security features, including role-based access control, data
encryption, and auditing, to protect sensitive data from unauthorized access and ensure
compliance with data protection regulations.
4. Data analysis and reporting: MS SQL has powerful data analysis and reporting capabilities,
allowing CD store owners to gain insights into customer behavior, sales trends, and inventory
management, among other things.
4. Abstract of the project
We created a database program that manage CD store.
Management include storing record of CD’s
customer, employees.
It also store the data of hourly based employees.
We have ensure column level security and row level
security in our project.
It also perform some mathematical calculation like avg
salary of employee's etc. using aggregate function.
5. Conti:
We will retrieve specific record from our database using
joins, stored procedure etc.
6. Operation to create CD-store management
Tables
Inserting data into these tables.
Retrieval of data with the help different queries(on
demand/request).
Constraints
View
Stored procedure
Aggregate function
Joins etc.
8. Tables/Relation
To store Record.
Different tables in our Program
CD: store detail of cd which are common among all type of cd.
Movie_CD:Store additional detail of movie cd’s.
Game_CD:Store additional detail of movie cd’s.
Customer: To store customer detail.
Order CD: To store order detail.
Employees: Store Employees detail of the store.
Employees Hours: store detail of hourly based employee's (extra
time)
10. Relation ship:
CD to Movie_CD: Cd table contain primary key and Movie_CD
contain foreign key.
CD to Game_cd: Cd table contain primary key and Movie_CD
contain foreign key.
Customer to order CD: customer table contain primary key and
order CD contain foreign key.
Employees to Employees hours: Employees table contain primary
key and Employees hours contain foreign key.
11. View:
Virtual table to store specific information
Different views in our program
Cd_price:It stores the information of those cd whose price
is greater than 7.It also ensure row level security in our
program.
Employee detail: It stores the all information of employees
excluding salary (ensure column level security).
Select_ Employee: it stores all information of employees
whose employe id is greater than 20002
12. Conti:
Selected Employee for salary: stores information all
employees whose salary is greater than 60000.
Customer detail: It stores all information of customer
excluding phone number.
Extra hour: store all information of hourly based
employees whose overtime hour is greater than 5.
13. Stored procedure:
Set of quires that can be executed when we need(reuse it).
Different stored procedure in our program.
Employee detail in the store.
Employee detail according to salary.
Cd detail according to artist.
Order detail.
Developer of the game_cd.
14. Aggregate Function
Takes multiple values as input and return a single value as output.
Different aggregate function in our program.
total_quantity_of_order_CD: uses sum function to calculate total number of
CD in the store.
average_price_of_CD: use avg function to calculate average selling price of
Cd.
maximum_Salary_of_Employe: use max function to calculate minimum
salary of an employee.
minimum_Salary_of_Employe:use min function to calculate minimum salary
of an employee.
15. Joins
Use to retrieve combine data from different tables.
Different joins in our program
Inner join:Retrive common data from CD and movie cd.
Left join:Retrive all data from cd table and common data
with movie CD.
Full outer join: Retrieve all data from cd and movie cd