0% found this document useful (0 votes)
44 views12 pages

Dbms Project Santosh Group

Uploaded by

heloo world
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views12 pages

Dbms Project Santosh Group

Uploaded by

heloo world
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Contents

1. Introduction........................................................................................................................1

1.1 Background.................................................................................................................1

1.2 Objectives....................................................................................................................1

2. Database Design and Development....................................................................................1

2.1 ER Diagram.................................................................................................................1

2.2 Cardinality Mapping...................................................................................................1

3. Database Testing................................................................................................................3

4. T-SQL.................................................................................................................................3

4.3.3 Right join.....................................................................................................................5

4.3.4 Full join.......................................................................................................................6

5. Conclusion and Knowledge Gained...................................................................................6


1. Introduction
1.1Background
A football tournament is a team sport between two teams of eleven players with a
spherical ball. Simply football tournament management is a web management system which
store the details of player, team, coach, transfer details etc. It mostly focusses on managing
all important information during the tournament season, registration process etc. during the
tournament and until the tournament is over
Tournament management manages the registration process before the tournament held.
The system is able to register team, coaches, player, officials that are going to involve in the
tournament. It manages the location and important details of each matches. It can produce
pre-printed paper which been use to fill in the match result and report. The player status
either eligible or suspended will state on the paper. All matches and report can be viewed by
football tournament management system
Football tournament management system helps to identify the details of all the record
of the team, player, coach, etc. who directly or indirectly involve in the football tournament.

1.2 Objectives
 To produce an efficient system in the tournament.
 To provide different report for different function

2. Database Design and Development


Football tournament management deals with design that covers the information about the
records of players, coach, team, individual score of players, match between teams,
registration process and so on. This database is designed through SOL.
2.1 ER Diagram
2.2Cardinality Mapping
In our ER-Diagram, we have following types of mapping cardinalities:
One-to-One

Page 1 of 13
There is one to one relationship between many entities in our er-diagram. They are:
 Each team has one coach.
 Each team is supported by single sponsor.
 Each match is played at particular stadium.

One-to-many
The following shows the one to many relationship in our er-diagram:
 Each team has many players.
 Each team plays several matches.
 Each player has various individual scores.

2.3Schema Design
2.4 Database Development
2.4.1 Entity and Attribute Creation[DDL]

Create table team(


Tid integer not null,
TName varchar(25) not null,
TAdd varchar(25) not null,
RegistrationNo bigint not null,
constraint pk_team primary key(Tid)
);
alter table team add Tadd int;

[2.4.2] Anoamaolies and Normalization


Anomalies are the simply error and inconsistency of the database. Anomalies are
problems that can occurred in poorly planned, un-normalisednormalized database where all
the data stored in one table. There are especially three types of anamolyanomaly.
Insertion anamolyanomaly: It is the inability to add the data in the database.
Deletion anamolyanomaly: Some information is loss due to the deletion of other values.
Update anamolyanomaly: It can be occurred during the time of recording the data in one
table causes partial update or redundant.

Page 2 of 13
Normalization is a process of organizing the data in database to avoid data
redundancy, insertion anamolyanomaly, update anoamaoly and deletion anoamaoly. It

maintains consistency in the database. It is used in a database management system


specifically with relational database to decrease redundant information and to minimize
the data anoamaolies.

[2.4.3] I2.2.3 Integrity Constraint Management


Integrity constraint ensures the changes made to the database by the authorized user due
to the loss of database. It guard against the accidental damage to the database. It includes the
domain ,domain, referential, assortionassertion integrity. To create a tabletable, we use NOT
NULL, PRIMARY KEY, UNIQUE, CHECK. Example:
Create table team(
Tid integer not null,
TName varchar(25) not null,
TAdd varchar(25) not null,
RegistrationNo bigint not null,
constraint pk_team primary key(Tid)
);

Referential Integrity
create table team_has
(
Tid integer not null,
Pid integer not null,
constraint fk_team foreign key (Tid) references team,
constraint fk_teamhas foreign key (Pid) references player
);

Page 3 of 13
3. Database Testing

3.1 Entry record in each table

3.2 Updating, Deletion, Selection Table

4. T-SQL
4.1 Simple Queries
a. Retrieve all the details of team whose id is 4.
select * from team where tid=04;

b. Arrange the details of players in descending by their name.


select * from player order by PName desc;

c. retrieve the name of the player who is in team NCC.


select PName from Player,team_has , team where player.Pid=team_has.Pid and
team_has.Tid=Team.Tid and TName ='NCC';

d. update the name of Guide with id 102 to Santosh


update coach set cname='Santosh'where cid=102;

e. Retrieve all match detail with matchid between 302 and 304.

Page 4 of 13
select * from match where matchid between 302 and 304;

4.2 Subqueries
a. Retrieve the detail of player who has scored maximum goal.
select*from player,Individual_Score where player.pid=individual_score.pid and
goals= (select max(goals)from individual_score);

b. Retrive the name of player who has scored second heighest goals

select player.pname from player, individual_score where


player.pid=individual_score.pid and goals= (select max(goals) from individual_score
where goals !=(select max(goals)from individual_score));

4.3 Join
[4.3.1] inner Inner join
select pname, tname from player inner join team_has on
player.pid=team_has.pid inner join team on team_has.tid=team.tid;

4.3.1[4.3.2] Left Join

Page 5 of 13
left join
select pname, tname from player left join team_has on player.pid=team_has.pid left join
team on team_has.tid=team.tid;

[4.3.3] Rright join


select pname, tname from player right join team_has on player.pid=team_has.pid right join
team on team_has.tid=team.tid;

[4.3.4] Ffull join


select pname, tname from player full join team_has on player.pid=team_has.pid full join
team on team_has.tid=team.tid;

5. Conclusion and Knowledge Gained


We come to know about the importance of database design in football management
system as database design simplifies all the system and process in football management.
Similarly, we know about the way of solving data redundancy and inconsistency problem

Page 6 of 13
with the help of database design in our management. We got the knowledge about the
importance of integrity and how it can be maintained in our management system with the
help of database management system.
Database design helps us to define, store and retrieve the data for various purpose
while preparing our complete football tournament management system. It also helps in the
process of accessing our data and also for the security of accessed data. As a result, we can
prepare our football tournament management system with the help of database design as it
helps to achieve our objectives i.e. to produce efficient system in our football management
system and to provide report for various functions.
So with the help of these management system we can easily find out the details
of the football tournament.

Page 7 of 13
Page 8 of 13
Page 9 of 13
Page 10 of 13
Page 11 of 13

You might also like