You are on page 1of 18

C.V.

RAMAN GLOBAL UNIVERSITY

BHUBANESWAR, ODISHA-752054

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

DATABASE ENGINEERING CASE STUDY


Submitted by
PRATYAY RAJ (20010219)
BRANCH: CSE (SOFTWARE)
Under the guidance of Mr. CHANDAN KUMAR PANDA
ACKNOWLEDGEMENT

I the undersigned have great pleasure in giving our sincere


thanks to those who have contributed their valuable time in
helping us to achieve the success in our project work.

I would like to express our gratitude to all those gave us the


possibility to complete this project. I want to thank C.V. Raman
Global University for giving us the opportunity for doing this
project.

I am indebted and thankful to our Project Guide Mr. CHANDAN


KUMAR PANDA to whom I owe his piece of knowledge for his
valuable and timely guidance, co-operation, encouragement &
time spent for doing this project work.

My sincere thanks to the IT staff for providing us sufficient


information which helped us to complete our project
successfully.
ABSTRACT

IPL Database Management is a cricket scheduling-based


application exclusively for the game of cricket. The Application
features schedules, information about teams, records of batting and
bowling, creating new schedules, can search about players, it
displays rank tables for teams and players. The admin has all
authorities to make changes for the database so admin can add
players, can add schedules, can add stadiums and also have
permission to removing of them from the database. 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 players runs and wickets and
other match particulars in this database.

The user’s login window also featured with create an account,


player search for players information, getting future match
particulars, rankings, cricket boards, stadiums, schedules and their
venues. Can fetch the schedules with their venue and squad
available by the team, players selected for the current match.
TABLE OF CONTENTS

1. INTRODUCTION..................................................................................
2. PUROSE OF DATABASE....................................................................
3. TYPES OF DATABASE........................................................................
4. APPLICATION OF DATABASE............................................................
5. ADVANTAGES & DISADVANTAGES OF DATABASE........................
6. SOME IMPORTANT TERMS RELATING TO DBMS...........................
7. ER-DIAGRAM.......................................................................................
8. INTRODUCTION ON IPL.....................................................................
9. COMMANDS........................................................................................
10. TABLES..............................................................................................
11. CONSTRAINTS..................................................................................
12. CONCLUSION....................................................................................
INTRODUCTION
Databases and database technology have a major impact on the
growing use of computers. It is fair to say that databases play a critical role
in almost all areas where computers are used, including business, electronic
commerce, engineering, medicine, genetics, law, education, and library
science. The word database is so commonly used that User must begin by
defining what a database is. Our initial definition is quite general. A database
is a collection of related data.1 By data, User mean known facts that can be
recorded and that have implicit meaning. For example, consider the names,
telephone numbers, and addresses of the people you know. You may have
recorded this data in an indexed address book or you may have stored it on
a hard drive, using a personal computer and software such as Microsoft
Access or Excel. This collection of related data with an implicit meaning is a
database. The preceding definition of database is quite general; for
example, User may consider the collection of words that make up this page
of text to be related data and hence to constitute a database. However, the
common use of the term database is usually more restricted.
PURPOSE OF DATABASE
 In early days, database applications were built on top of file systems.
 The difficulties faced in file system was that,
• Multiple file format
• Duplication of information in different files
• Integrity problems
• Atomicity of updates
• Security problems

TYPES OF DATABASE
 Operational database
 End – User database
 Centralized database
 Distributed database
 Personal database
 Commercial database

APPLICATION OF DATABASE
 Numeric and Textual Database
 Multimedia Database
 Geographic Information Systems
 Data Warehouse and OLAP

 Real – time and Active Database


ADVANTAGES & DISADVANTAGES OF DATABASE
ADVANTAGE
 Minimal data redundancy
 Improved data consistency
 Improved data sharing
 Enforcement of standards
 Improved data quality
DISADVANTAGE:-
 Initial installment is high
 Training is required
 Unauthorized access
 Complex recovery

SOME IMPORTANT TERMS RELATING TO DBE


 Data modeling:
Data modeling refers to on what type of data should be stored on the database
and how to process the data.
 Entities:
Entities are the main data objects through which we can collect information. Any
occurrence of an entity is called an entity instance.
 Attributes:
Attributes are the behaviors of entities which provide detailed information about
them. Key attribute is used to identify a unique instance of an entity.
 Relationships:
A relationship represents the association between one or more entities. Types of
relationship are one to-one, many-to-one, one-to-many and many-to-many.

ER-DIAGRAM
An entity–relationship model is usually the result of systematic analysis to define
and describe what is important to processes in an area of a business. An E-R model
does not define the business processes; it only presents a business data schema in
graphical form. It is usually drawn in a graphical form as boxes (entities) that are
connected by lines (relationships) which express the associations and dependencies
between entities. An ER model can also be expressed in a verbal form, for example:
one building may be divided into zero or more apartments, but one apartment can only
be located in one building. Entities may be characterized not only by relationships, but
also by additional properties (attributes), which include identifiers called "primary keys".
Diagrams created to represent attributes as well as entities and relationships may be
called entity-attribute-relationship diagrams, rather than entity-relationship models.
INTRODUCTION ON IPL

The 2022 Indian Premier League, also known as IPL 15 or for sponsorship
reasons, Tata IPL 2022, is the fifteenth season of the Indian Premier League (IPL), a
professional Twenty20 cricket league established by the Board of Control for Cricket in
India (BCCI) in 2007. The tournament is being played from 26 March 2022, and to be
concluded with the final on 29 May 2022. The group stage of the tournament is being played
entirely in the state of Maharashtra, with Mumbai and Pune hosting the matches.[3] The full
schedule of the tournament was announced on 6 March 2022
The season saw the expansion of the league, with the addition of two new
franchises. Therefore, this was the second season to have ten teams, after the 2011
tournament. Chennai Super Kings are the defending champions, having won their fourth title
during the previous season.

Teams

Chennai Super Kings

Delhi Capitals
Gujarat Titans

Kolkata Knight Riders

Lucknow Super Giants

Mumbai Indians

Punjab Kings

Rajasthan Royals

Royal Challengers Bangalore

Sunrisers Hyderabad

DATABASE OBJECTS

OBJECT DESCRIPTION
Table Basic unit of storage,
composed of rows
View Logically represents subsets
of data from one or more
tables
Sequence Generate numeric values
Index Improves the performance of
some queries
Synonym Gives alternative name to an
object
COMMANDS

DDL DML TCL DCL

CREATE INSERT COMMIT GRANT


ALTER SELECT ROLLBACK REVOKE
TRUNCATE UPDATE
DROP DELETE

BASIC DATA TYPES


• Number : Numeric values with or without decimal points.
• Varchar : Accepts alphanumeric type of data.
• Date : Stores calendar data's

CREATE
 Create command is used to create table in database.
Syntax:
CREATE TABLE table name (col1 data type
(size),col2….);
Eg:
CREATE TABLE team
(team_id NUMBER(5) PRIMARY KEY,
team_name VARCHAR2(20),
owner VARCHAR(20),
captain_id NUMBER(10) UNIQUE,
coach_id NUMBER(10) UNIQUE,
ground_id NUMBER UNIQUE(5));

DESCRIBE
 Used to display the structure of the table.
Eg: DESCRIBE teams;

STRUCTURE-TEAM

Column Name Constraints Data Type

Team Id Primary key / Number(5)


Unique

Team Name Varchar2(20)

Owner Varchar2(20)

Captain Id Unique Number(10)


Coach Id Unique Number(10)

Ground Id Unique Number(5)


INSERT
 Used to insert records into a table.
 Syntax :INSERT INTO table_name (COL1,COL2,…)
VALUES(VAL1, VAL2…);
E.g.:

01 Mumbai Indians Reliance 101 501 1002

INSERT INTO team VALUES(01,’Mumbai


Indians’,’Reliance’,101,501,1002);

SELECT
 To retrieve record from a table.
Eg: SELECT Captain_Name FROM captains;

Captain_Name
M.S DHONI
ROHIT SHARMA
SHREYAS IYER
MAYAN AGGARWAL
FAF DU PLESIS
HARDIK PANDYA
KL RAHUL
KANE WILLIAMSON
SANJU SAMSON
RISHAB PANT

 SELECT * FROM team ;

TABLE 1 – TEAM

Team Team Owner Captai Coach Ground Id


Id n Id Id
Name

01 Mumbai Reliance 101 501 1002

Indians

02 Delhi GMR Group 102 502 1001

Capitals

03 Kolkata Red Chillies 108 505 1003


Knight Entertainment

Riders

TABLE 2 – GROUND

Ground Ground Name Team Name Location


Id

1001 Feroz Shah Delhi Capitals Delhi


Kotla

1002 Wankhede Mumbai Mumbai


Indians

1003 Eden Gardens Kolkata Knight Kolkata


Riders
TABLE 3- CAPTAIN

Captain Id Captain Team Nationality


Name id
101 Rohit Sharma Mumbai 901
Indians
102 Rishab Pant Delhi 902
Capitals
108 Gautam Kolkata 901
Gambhir Knight Riders
CONSTRAINTS
 Ensures data integrity.
 Helps to prevent invalid entry into tables.
 Enforces rules on the data in a table whenever a row is inserted,
updated or deleted from that table.
 Prevent deletion of table if there are dependencies from other table

CONSTRAINTS TYPES
• Not Null Constraint: Specifies that the column cannot contain a null
value
• Check constraint: Specifies a condition that must be true
• Unique constraint:
• Specifies a column or combination of columns whose values must be
unique for all rows in the table.
• Primary Key: Uniquely identifies each row of the table
• Foreign Key: Used for referencing data

CONCLUSION
The project, developed using MySQL is based on the requirement
specification of the user and the analysis of the existing system, with
flexibility for future enhancement. The expanded functionality of today’s
software requires an appropriate approach towards software development.
This IPL database management software is designed for people who want
to manage various particulars can be known by recording them in the
database. Various records and particulars about match got increased
rapidly. Thereby the numbers of matches and there is going to be
increased day-by-day. And hence there is a lot of strain on the person who
are watching the IPL to know about future matches and also to see the
records done by various players and getting datils in fingertips.
Identification of the drawbacks of the existing system leads to the designing
of computerized system that will be compatible to the existing system with
the system which is more user friendly and more GUI oriented.

You might also like