Sie sind auf Seite 1von 30

Database Management System(DBMS) Project

On The Topic

“Online Music Library”

Presentated By:-
Mayank Sharma (18SCSE1010626)
Anish Anand (18SCSE1010352)
AGENDA
Description of the Project

Functionalities

ER Diagram of the project

Table Description

Complex Queries

Output Table of NF1, NF2, NF3

Transaction Processing Concepts


PROJECT DESCRIPTION

This database is designed to accept records related to


a personal music collection. It is designed to
encompass the essential detail related to every artist
for example; band’s members’ names, their releases
with dates, track listing, live performances,
achievements and related attributes with individual
artists’ statistics and exploration.
This database design has fully capable for easy
editing as well as appending for more fields as per its
future needs.
FUNCTIONALITIES
1. You can search records on various criterias such as Music,
Track, Music library, Singer.

2. Keep the track logs of Album, Performer, Music Library etc.

3. All the modules Performer Music Library, Album, Singer,


Music are inter related and coupled.

4. All the performer, Albums, Music library modules have their


unique record ID for fast transactions and searching.

5. Editing, Adding and Updating of records is improved which


results in proper resource management of music data.
ER DIAGRAM
TABLE IN ER DIAGRAM
The most important tables in our project are:-

#User (id, name, address, mobile_no, email)

#Music (id, type, music_desc, password, name,


address, mobile_no, email)

#Login (Id, password, user_name)

#Track (Id, type, music descr, password, name,


address, mobile_no, email)

#Singer (id, password, name, address, mobile_no, email)


TABLES
COMPLEX QUERIES
To establish one-click easy to use searching within the database the
following queries has been designed for the users: -

 query to fetch “NAME” from user table using the alias name as
<USER_NAME>.

 query to fetch unique values of mobile_no. from user table.

 query to print the address, mobile_no. and email from user table into a single
column COMPLETE_INFORMATION. A space char should separate them.

 query to print details of the singers who are from delhi.


 query to fetch the count of tracks type from the track
table.

 query to fetch track type "slow" with music_desc "sufi".

 query to fetch track type "romantic" with music_desc


"gazal".

 query to fetch track type "slow" with singer_name "lata


mangeskar".

 query to fetch music type "wild" with music_desc "solo".

 query to fetch music type "romantic" with music_desc


"duet" with singer_name "anish".
First Normal Form
Output of 1st Normal Form
Second Normal Form
Output Of 2nd Normal Form
Table_user
Table_track
Third Normal Form
Output of 3rd Normal Form
Tasks To Perform on Transaction
Processing Concepts
1. Execute the concept of Data Control Language (DCL).

2. Implement Transaction Control Language (TCL).

3. Implement Simple and Complex View.

4. Write a PL/SQL block to satisfy some conditions by accepting input


from the user.

5. Write a PL/SQL block for greatest of three numbers using IF AND


ELSEIF.

6. Write a PL/SQL block for summation of odd numbers


using for LOOP.
Execute the concept of Data Control Language (DCL).
Implement Transaction Control Language (TCL).
Output
Rollback
Implement Simple and Complex
View.
1.Simple View
Complex View
Write a PL/SQL block to satisfy some conditions by
accepting input from the user.

&

Write a PL/SQL block for greatest of three numbers


using IF AND ELSEIF.
DECLARE
--a assigning with 46
a NUMBER := 46;
--b assigning with 67
b NUMBER := 67;
--c assigning with 21
c NUMBER := 21;
BEGIN
--block start
--If condition start
IF a > b
AND a > c THEN
--if a is greater then print a
dbms_output.Put_line('Greatest number is '
||a);
ELSIF b > a
AND b > c THEN
--if b is greater then print b
dbms_output.Put_line('Greatest number is '
||b);
ELSE
--if c is greater then print c
dbms_output.Put_line('Greatest number is '
||c);
END IF;
--end if condition
END;
Write a PL/SQL block for summation of odd
numbers using for LOOP.
  declare
      n number;
      sum1 number default 0;
      end value number;
  begin
      end value:=&end value;
      n:=1;
      for n in 1..endvalue
      loop
        if mod(n,2)=1
          then
          sum1:=sum1+n;
        end if;
    end loop;
    dbms_output.put_line(' sum  =  '||sum1);
end;
THANK YOU

Das könnte Ihnen auch gefallen