Cwc Final Report
Cwc Final Report
Submitted by
Vardhan S Roopesh N
1RN20IS179 1RN20IS196
2022 – 2023
RNS INSTITUTE OF TECHNOLOGY
Channasandra, Dr.Vishnuvardhan Road, RR Nagar Post,
Bengaluru – 560 098
CERTIFICATE
This is to certify that the Mini project report entitled CRICKET WORLD CUP DATABASE
MANAGEMENT SYSTEM has been successfully completed by VARDHAN S bearing USN
1RN20IS179 and ROOPESH N bearing USN 1RN20IS196, presently V semester student of
RNS Institute of Technology in partial fulfillment of the requirements as a part of the DBMS
Laboratory for the award of the degree Bachelor of Engineering in Information Science and
Engineering under Visvesvaraya Technological University, Belagavi during academic year
2022 – 2023. It is certified that all corrections/suggestions indicated for Internal Assessment
have been incorporated in the report deposited in the departmental library. The mini project
report has been approved as it satisfies the academic requirements as a part of DBMS Laboratory
for the said degree.
External Viva
1.
2.
ii
DECLARATION
We, VARDHAN S [USN: - 1RN20IS179] and ROOPESH N [USN: - 1RN20IS196] students
Place:- Bangalore
Date: -
VARDHAN S
[1RN20IS179]
ROOPESH N
[1RN20IS196]
iii
ABSTRACT
It features with searching of players involved in the game and retrieve the players of
the particular match by selecting match number. Also, can fetch the schedules with their
venue and squad available by the team, players selected for the current match. Admin can
also authority to update the rating of the teams and also player’s runs and wickets and other
match particulars in this database.
iv
ACKNOWLEDGMENT
The fulfillment and rapture that go with the fruitful finishing of any assignment would
be inadequate without the specifying the people who made it conceivable, whose steady
directionand support delegated the endeavors with success.
We would like to express my thanks to our Principal Dr. M K Venkatesha for his
supportand inspired me towards the attainment of knowledge.
We wish to place on record my words of gratitude to Dr. Suresh L, Professor and Head
of the Department, Information Science and Engineering, for being the enzyme and master
mind behind my Project work.
We would like to express my profound and cordial gratitude to my Lab In charge Dr.
R Rajkumar, Associate Professor, Department of Information Science and Engineering for
theirvaluable guidance, constructive comments and continuous encouragement throughout the
Project work.
I would like to express my profound and cordial gratitude to my Guide Ms. Aishwarya
G, Assistant Professor, Department of Information Science and Engineering for her valuable
guidance in preparing Project report.
I would like to thank all other teaching and non-teaching staff of Information Science
& Engineering who have directly or indirectly helped me to carry out the project work.
And lastly, I would hereby acknowledge and thank my parents who have been a source
of inspiration and also instrumental in carrying out this Project work.
VARDHAN S
[1RN20IS179]
ROOPESH N
[1RN20IS179]
v
TABLE OF CONTENTS
CERTIFICATE ii
DECLARATION iii
ABSTRACT iv
ACKNOWLEDGMENT v
TABLE OF CONTENTS vi
1. INTRODUCTION 1
1.1 Background 1
2.1 ER Diagram 2
2.2 Schema Diagram 2
2.3 Schema Description 3
3. SYSTEM DESIGN 4
vi
LIST OF FIGURES AND TABLES
viii
Chapter 1
INTRODUCTION
1.1 Background
A database is an organized collection of data, generally stored and accessed
electronically from a computer system. Where databases are more complex they are often
developed usingformal design and modeling techniques.
The database management system (DBMS) is the software that interacts with end
users, applications, the database itself to capture and analyze the data and provides facilities
to administer the database. The sum total of the database, the DBMS and the associated
applications can be referred to as a "database system". Often the term "database" is also
used to loosely refer to any of the DBMS, the database system or an application associated
with the database. 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. Typical
database administration tasks supported by the DBMS include change management,
performance monitoring/tuning and backup and recovery. Many database management
systems are also responsible for automated rollbacks, restarts and recovery as well as the
logging and auditing of activity.
Figure 2.1: E-R Diagram for Cricket World Cup Database Management System
Entity relationship diagram displays the relationships of entity set stored in a database. In
other words, we can say that ER diagrams help you to explain the logical structure of
databases. At first look, an ER diagram looks very similar to the flowchart.
Figure 2.2: Relational Schema Diagram for Cricket World Cup Database Management
System
A schema contains schema objects, which could be tables, columns, data types, store
procedures, relationships, primary keys, foreign keys. A database schema can be representedin a
visual diagram, which shows the database objects and their relationship with each other.
1. PLAYERS: This table contains the database of Players and all their details. It has 13
columns: Player_name, Cap_no, Team_name, age, DOB, Wickets, Type,
No_of_matches, Rank, Batting best, Bowling best, Runs, Image. The primary key is
Player_name and Cap_no.
2. TEAMS: This table contains the database of Teams and all their details. It has 4 columns:
Team_name, Rank, Rating, and Flag. The primary key is Team_name.
3. CRICKET_BOARD: This table contains the database of cricket_board and all their
details. It has 5 columns: Board_name, Team, DOA, Chairman, and Flag. The primary
key is Board_name.
4. SCHEDULES: This table contains the database of Scheduling of the matches and all
their details. It has 5 columns: Match_no, Date, Team1 and Team2, Stadium. The primary
key is Match_no, Date.
5. STADIUMS: This table contains the database of Stadiums and all their details. It has 5
columns: Stadium_name, Board_name, DOI, Capacity, and Team. The primary key is
Stadium_name.
SYSTEM DESIGN
3.1 Table Description
TEAM:-
Table 3.1: TEAM
ADMIN: -
Table 3.2: ADMIN
LOGIN: -
Table 3.3: LOGIN
SCHEDULES: -
Table3.4: SCHEDULES
STADIUMS: -
Table 3.5: STADIUMS
CRICKET_BOARDS: -
Table3.6:CRICKET_BOARDS
PLAYER: -
Table 3.7: PLAYER
DELIMITER $$
CREATE DEFINER=`root`@`localhost`
PROCEDURE`player` ()
DELIMITER;
3.3 Trigger
A trigger is a stored procedure in database which automatically invokes whenever a
specialevent in the database occurs. For example, a trigger can be invoked when a row is
insertedinto a specified table or when certain table columns are being updated.
In This project the trigger used here updates the DOI of stadium automatically:
4.1.3 JavaScript
JavaScript is a dynamic computer programming language. It is lightweight and most
used as a part of web pages, whose implementations allow client-side script to interact with
the user and make dynamic pages. It is an interpreted programming language with object-
oriented capability. Client-side JavaScript is the most common form of the language. The
script should be included in or referenced by an HTML document for the code to be
interpreted by the browser. It means that a web page need not be a static HTML, but can
include programs that interact with the user, control the browser, and dynamically create
HTML content. The JavaScript client-side mechanism provides many advantages over
traditional CGI server-side scripts. The JavaScript code is executed when the user submits
the form, and only if all the entries are valid, they would be submitted to the Web Server.
JavaScript can be used to trap user-initiated events such as button clicks, link navigation,
and other actions that the user initiates explicitly or implicitly. ADVANTAGES are: Less
server interaction, immediate feedback to the visitors, increased interactivity and richer
interfaces.
content on the web — hence the name “web server”. Although we call Apache a web server,
it is not a physical server, but rather software that runs on a server. Its job is to establish a
connection between a server and the browsers of website visitors (Firefox, Google Chrome,
Safari, etc.) while delivering files back and forth between them (client-server structure).
Apache is cross-platform software; therefore, it works on both UNIX and Windows servers.
User Login:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family:cursive;background-repeat: no repeat;
background-size: 100%;
}
form {border: 0px solid #f1f1f1;}
h2{font-size: 50px;
text-align:center;
color: aqua;}
input[type=text], input[type=password] {
width: 20%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}
button1 {
background-color: #E6BAA2;
color: white;
.cancelbtn {
width: 100%;
}
}
</style>
</head>
<body background="img/loginback.jpg">
<h2><i>User login</h2>
Admin Login:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="login.css">
<style>
body {font-family: Arial, Helvetica, sans-serif;background-repeat: no repeat;
background-size: 100%;
}
Department of ISE, RNSIT 2022-2023 12
18CSL58: DBMS Mini Project Report Cricket World Cup Database Management System
}
button1:hover {
opacity: 0.8;
}
.cancelbtn {
width: auto;
padding: 10px 18px;
background-color: #f44336;
}
.imgcontainer {
text-align: center;
Department of ISE, RNSIT 2022-2023 13
18CSL58: DBMS Mini Project Report Cricket World Cup Database Management System
Database Connect:
Before you can access data in a database, you must create a connection to the database. In
PHP, this
is done with the getConnection() function.
<?php $con=MySQL_connect ("localhost","root","","cricket");?>
The above Figure 4.1 is the snapshot of the homepage with the login prompts of user
And admin.
In the above Figure 4.2, it shows admin login page which gives authentication to enter
into the admin page.
The above figure 4.3 it shows user login page which gives authentication to enter the Userpage.
In the above Figure 4.4, shows window which allows adding and deleting of players, stadiums,
schedules andcan view schedules, rankings, stadiums, cricket boards and about page.
In the above Figure 4.4, shows the user side of the website. Here the user can view schedules, rankings,
stadiums, cricket boards and about page. The user can also Search for the player information.
In the above Figure 4.6, shows the Scheduling of the matches. Here the Admin and User can view the
match_no, Date of the matches, Team1 and Team2 and their respective flags.
In the above Figure 4.7, shows the present Stadiums. Here the Admin and User can view the
Stadium_Names, Capacity of the Stadium, DOI, Board_Name and Team’s Stadium.
In the above Figure 4.8, shows the Cricket_Boards and their details, here the Admin and User can view
the Board_name, Chairman_Name, DOA and Flags.
• Can create module such that the user can login and gain information through the window.