Docsity

database management system project, Slides of Computer Science

Toggle sidebar
bg1
Page | 1
Department of Computer Science Engineering
Course code -INT306
DATABASE MANAGEMENT SYSTEM PROJECT REPORT
(Project Semester August-December 2022)
Cricket League Data Management System
Submitted by
Supriya Kumari– 12105688
Roll_no.:K21RGA10
Btech CSE, Section-K21RG
Under the Guidance of
Mam Madhuri – 23525
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download database management system project and more Slides Computer Science in PDF only on Docsity!

Department of Computer Science Engineering

Course code - INT

DATABASE MANAGEMENT SYSTEM PROJECT REPORT

(Project Semester August-December 2022)

Cricket League Data Management System

Submitted by Supriya Kumari– 12105688 Roll_no.:K21RGA Btech CSE, Section-K21RG Under the Guidance of Mam Madhuri – 23525

CERTIFICATE

This is to certify that the course-based project entitled “Cricket League Data Management System” is a bonafide work done by Supriya kumari (121 05688 ) in partial fulfillment of the requirement for the award of a degree in “BACHELOR OF TECHNOLOGY in Computer Science Engineering” during the academic year 2022-2023. Signature and Name of the Supervisor Designation of the Supervisor School of …………………………………………. Lovely Professional University Jalandhar, Punjab. Date:

DECLARATION

I, Supriya kumari student of Btech under CSE/IT Discipline at, Lovely Professional University, Punjab, hereby declare that all the information furnished in this project report is based on my intensive work and is genuine. Date: 1 7 /11/ Registration No.: 1210 5688 Signature of Student

INTRODUCTION ........................................................................................................ 4

PROJECT DESCRIPTION........................................................................................... 5

LIST OF ENTITIES & ATTRIBUTES ........................................................................ 7

ER DIAGRAM (CONCEPTUAL MODEL) ................................................................ 8

SCHEMA DIAGRAM .................................................................................................. 9

CREATE & INSERT SQL/PLSQL QUERIES .......................................................... 10

SQL QUERIES RELATED TO REPORT GENERATION ...................................... 17

CONCLUSION ........................................................................................................... 21

INTRODUCTION

A database is an organized collection of data. The data is typically organized to model aspects of reality in a way that supports processes requiring information. A DBMS makes it possible for end users to create, read, update and delete data in a database. The DBMS essentially serves as an interface between the database and end users or application programs, ensuring that data is consistently organized and remains easily accessible. The DBMS manages three important things: the data, the database engine that allows data to be accessed, locked, and modified, and the database schema, which defines the database’s logical structure. These three foundational elements help provide concurrency, security, data integrity, and uniform administration procedures. The DBMS can offer both logical and physical data independence. That means it can protect users and applications from needing to know where data is stored or having to be concerned about changes to the physical structure of data The Cricket League Data Management System facilitates the user or any cricket match organization to establish, maintain and manage data of any kind of cricket tournaments such as the date and time of the match, details of all the participating teams, along with details of all the players and all the respective coach of the team, apart from this it also enables the user to save data about stadium and umpires decided for the tournaments.

PROJECT DESCRIPTION

This project is about creating the database for Cricket League Management System. There are six different entities related to each other in this project named MATCH, TEAM, PLAYER, COACH, STADIUM, and UMPIRE all these entities are related to each other through the foreign keys like

  1. Player and Coach’s table are related to Team’s table with the foreign key TEAM_ID.
  2. Match table is again related to two different foreign keys named STADIUM_ID and UMPIRE_ID from their respective tables. From the table match, the user can find the date of all the matches with team name and winner and looser after the match and stadium details and umpire at the match Similarly, from the team table user can see the details of all the teams in the tournament with their player and coach details from player and coach table and also the current rank of the team And from the player table user can get all the player details with team name and their rank in the tournament From the stadium table, the user can see all the details of its address and the capacity of the audience. From the umpire, table user can see all the details of the umpire like name, id, and match id. In this project, all the concepts of SQL are being used for the creation of tables and maintaining the relationships between them. And for the insertion of details in the table PLSQL is used.

LIST OF ENTITIES & ATTRIBUTES

ER DIAGRAM (CONCEPTUAL MODEL)

CREATE & INSERT SQL/PLSQL QUERIES

CREATE COMMANDS:

//match table create table match ( match_id int primary key, team1 varchar(200), team2 varchar(200), winner varchar(200), looser varchar(200), date_time TIMESTAMP ); //team table create table team ( team_id int primary key, team_name varchar(200), team_rank number(20), phone_number number(38), address varchar(200) ); //player table create table player ( player_id int primary key, player_name varchar(200), dob date,

nationality varchar(200), player_rank number(20), team_id int not null ); //coach table create table coach ( coach_id int primary key, coach_name varchar(20) ); //umpire table create table umpire ( umpire_id int primary key, umpire_name varchar(200), phone_number number(38) ); //stadium table create table stadium ( stadium_id int primary key, stadium_name varchar(200), address varchar(200), capacity varchar(200) ); //change player alter table player add

alter table match add umpire_id int not null; alter table match add stadium_id int not null; alter table match add constraint match1_fk foreign key (umpire_id) references umpire(umpire_id) ; alter table match add constraint match2_fk foreign key (stadium_id) references stadium(stadium_id) ; INSERT QUERIES: #team insertion procedure create or replace procedure "INSERTTEAM" (id IN number, name IN varchar2, rank IN number,pnumber IN number,add IN varchar2) IS begin insert into team values(id,name,rank,pnumber,add); end; / begin insertteam('1','CHENNAI SUPER KINGS','4','1800078945','CHENNAI'); insertteam('2','GUJARAT TITANS','1','1210232578','AHEMDABAD'); insertteam('3','RAJASTHAN ROYALS','2','9876543210','JAIPUR'); insertteam('4','DELHI CAPITALS','3','7539517419','CHENNAI'); insertteam('5','MUMBAI INDIANS','5','1800096575','MUMBAL'); end; /

#show team create or replace procedure "SHOWTEAM" IS begin insert into team values(id,name,rank,pnumber,add); end; / #coach insert create or replace procedure "INSERTCOACH" (id IN number, name IN varchar2,tid IN number) IS begin insert into coach values(id,name,tid); end; / begin insertcoach('1','Krishnana EAIEAR','1'); insertcoach('2','Krish Patel','2'); insertcoach('3','Mohan Shah','3'); insertcoach('4','Duryodhan Kumar','4'); insertcoach('5','Mukesh Mahe','5'); end; / #player insert create or replace procedure "INSERTPLAYER" (id IN number, name IN varchar2,DOB IN varchar2,nation IN varchar2,prank IN number,tid IN number) IS begin insert into player values(id,name,dob,nation,prank,tid); end; /

#umpire insert create or replace procedure "INSERTUMPIRE" (id IN number, name IN varchar2,pn number) IS begin insert into umpire values(id,name,pn); end; / begin insertumpire('1','Sundaram Ravi','9876543210'); insertumpire('2','Anil Chaudhary','1234567890'); insertumpire('3','Kumar Dharmasena','7539514568'); insertumpire('4','Chettithody Patel','9865956456'); insertumpire('5','Nitin Menon','8526549510'); end; / #match create or replace procedure "INSERTMATCH" (id IN number, t1 IN varchar2, t2 IN varchar2, w IN varchar2, l IN varchar2,d varchar2,uid IN number, sid IN number) IS begin insert into match values(id,t1,t2,w,l,d,uid,sid); end; / begin insertmatch('1','GT','RR','GT','RR','2022- 05 - 01','5','1'); insertmatch('2','CSK','MI','MI','CSK','2022- 05 - 02','4','3'); insertmatch('3','DC','GT','DC','GT','2022- 05 - 03','3','5'); insertmatch('4','RR','MI','RR','MI','2022- 05 - 04','2','4'); insertmatch('5','CSK','GT','GT','CSK','2022- 05 - 05','1','2'); end; /

SQL QUERIES RELATED TO REPORT GENERATION