Online Music Management Project-1
Online Music Management Project-1
Online Music Management Project-1
GROUP MEMBER :
19CP052 – PRANATI TIKKU
19CP056 – KHUSHI BHABHOR
The different tables required for functional requirements and their functions are:
ADMIN TABLE:
USER TABLE:
Table 1
Table name: User
Primary key: u_id
This is the user table.
Sr No. Field name Field type Field size Constraint
1 u_id int 10 Primary key
2 Phn_num number 50 -
3 email varchar 10 -
4 password varchar 10 -
5 f_name varchar 20 -
6 lname varchar 20 -
Table 2
Table name: user_otp
Primary key:u_id
Sr No. Field name Field type Field size Constraint
1 u_id int Primary key
2 email varchar 50 -
3 otp varchar 50 -
User before download the song receives otp.
Table 3
Table 5
1. Administrator :
a_id admin_name, pwd
2. Artist :
artist_name image
3. Artist_detail :
artist_id artist_name, artist_detail, a_rating, song_name, song_detail
4. Add_songs :
song_id artist, song_name, s_rating, movie_name, release_date
5. User_detail :
u_id phn_num, email, password, fname, lname
6. User otp:
u_id email, otp
7. Playlist:
u_id song, artist, username, movie
8. Song details:
Song_id song_name, artist_name, genres, rating
9. Ratings:
r_id email, ratings, id
Normalization :-
Hence, as all tables are already normalized upto BCNF, there is no need of normalization.
Schema in Database
ADMIN DATABASE :
1. Administrator :
create table administrator (a_id varchar2(30), admin_name
varchar2(50), pwd varchar2(10),primary key (a_id))
2. Artist :
create table artist (artist_name varchar2(50), image
varchar2(50), primary key (artist_name))
3. Artist_detail :
create table artist_detail (artist_id varchar2(30), artist_name
varchar2(50), artist_detail varchar2(60), a_ratings varchar2(30),
song_name varchar2(50), song_detail varchar2(60), primary
key(artist_id))
4. Add_songs :
create table add_songs (song_id varchar2(30),song_name
varchar2(50),artist varchar2(50),movie_name
varchar2(50),release_date date,s_rating varchar2(30), Primary key
(song_id))
USER DATABASE :
5. User_detail :
create table user_detail (u_id int primary key, phn_num
number(10),email varchar(50),password varchar(10),fname
varchar(20),lname varchar(20))
6. User_otp :
create table user_otp(u_id int primary key,email
varchar(50),otp varchar(50))
7. Playlist :
create table playlist(u_id int PRIMARY KEY,song
varchar(60),artist varchar(50),username varchar(60),movie
varchar(50))
8. Song_details :
create table song_details(song_id int PRIMARY KEY,song_name
varchar(50),artist_name varchar(50),genres varchar(50),ratings
int)
9. Ratings :
create table ratings (r_id number(10)primary key, email
varchar2(40), ratings int, id int)
3) Retrieve the song name and image number of song from movie
name as song detail “Judwaa 2”
4) Retrieve the movie name ,song name and artist name of song
that is rated “5 star”
5)Retrieve song name, image number artist id, artist rating and
artist detail where song detail is “NULL”
Select song_name,song_detail,image,artist_id,a_ratings,artist_detail
from artist_detail inner join artist on artist_detail.artist_name =
artist.artist_name where song_detail='-'
6) Retrieve the user first name and song name where last name is
“Sharma”.