SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
Assignment Top Sheet
Department of Computer Science
Student Registration Number
GROUP 3
Class Section Semester
BSIT
A 5th
Course Name Course Code
Advance Database Systems CS-208
Student’s Full Name
Group No. 3
Assign Date: Submission Deadline:
After Mid Term 29-02-2018
Course Leader Name Course Coordinator Name
Muhammad Nouman Farooq Mam. Maryam
Assignment No.: Assignment Details:
Semester Project Pakistan International Cricket Stdiums
Instructions to Student:
Please Note: Work presented in an assessment must be your own. Plagiarism is where a
student copies work from another source, published or unpublished (including the work of
another student) and fails to acknowledge the influence of another’s work or to attribute
quotes to the author. Plagiarism is an academic offence and the penalty can be serious. To
detect possible plagiarism we may submit your work to the national plagiarism detection
facility. This searches the Internet and an extensive database of reference material including
other students’ work to identify.
I have read the above information and I confirm that this work is my own and
that it may be processed and stored in the manner described.
Group No. 3 29-02-2018
Signature:.................................................................... Date: .................................................................
Please leave sufficient time to meet the given deadline and do not leave the handing-in of assignments to the last
minute. You are being allowed meaningfull time for any system problems or other issues.
PROJECT
Pakistan International Cricket Stadiums
Group MEMBERS:
Name Roll no
1- Sarmad Ali 01-BSIT5A
2- Muhammad Abdullah 02- BSIT5A
3- Hashaam Altaf 38- BSIT5A
4-Syed Muhammad Hanif 45- BSIT5A
5- Noman Rasool 25- BSIT5A
6- Usama Yousaf 48- BSIT5A
7- Hamza Hanif 06- BSIT5A
8- Imran Khan 46- BSIT5A
Contents:
Chapter 1:
Preliminary study
Chapter 2:
ERD( Entity Relation Diagram) and Relational Database
Chapter 3:
Physical Implementation
Chapter One
Preliminary study:
We are going to discuss about the cricket stadiums that are internationally
declared for cricket matches in Pakistan. We collected the data from the
internet that how many cricket stadiums are in Pakistan that are declared
internationally for cricket matches.
We came to know that there are 11 Cricket Stadiums for international
matches. These cricket stadiums are located in many different cities of
Pakistan but there is only one international cricket stadium in one city and a
city can have only and only one cricket stadium in it.
• National cricket stadium of Karachi that was built in 1995 and has the crowd
capacity of 34,228.
• Gaddafi cricket Stadium of Lahore that was built in 1959 and has the crowd
capacity of 27,000.
• Iqbal Stadium of Faisalabad that was built in 1978 and has the crowd capacity
of 18,000.
• Jinnah Stadium of Sialkot that was built in 1920 and has a crowd capacity of
20,000.
• Niaz Stadium of Hyderabad that was built in 1959 and has a crowd capacity of
15,000.
• Jinnah Stadium of Gujranwala that was built in 1989 and has the crowd
capacity of 20,000.
• Arbab Stadium of Peshawar that was built in 1995 and has the crowd capacity
of 20,000.
• Rawalpindi Cricket Stadium of Rawalpindi that was built in 1993 and has a
crowd capacity of 25,000.
• Sheikhupura Cricket Stadium of Sheikhupura that was built in 1996 and has
the crowd capacity of 27,000.
• Ayyub Cricket Stadium of Peshawar that was built in 1978 and has the crowd
capacity of 32,000.
• Multan Cricket Stadium of Multan that was built in 2001 and has the crowd
capacity of 30,000.
• So, After getting this we completed our Requirements about our Project
Related Data.
Modules of Pakistan International Cricket Stadiums:
1. CITY:
It consists of cityId, cityName and cityProvince.
2. INT_STADIUMS:
It consist of stadiumName, stadiumCapacity, stadiumYearbuilt and CityId.
INTRODUCTION
INTIAL TASKS
This Pakistan International Cricket Stadiums project report gives a brief description
on the tasks worked out, development of ERD from the given scenario whereby we
had two entities City and Int_Stadiums with their attributes. Afterward we were able
to build the database using MySQL whereby we two four tables that we developed
from the ERD which had two entities thus by breaking many to many relationships
we were able to come up with two tables. Thus the other task was to write and apply
the SQL queries that could answer the provided questions.
Purpose
The purpose for this project is to design a database system for Pakistan International
Cricket Stadiums and to show the list of all the International Cricket Stadiums of
Pakistan.
Objectives and Outcomes
To come with the database-driven front end applications, queries or requests on the
front end application.
CHAPTER TWO
INTRODUCTION
This chapter gives a dramatically presentation of the scenario provided through the
use of the Entity relationship diagram.
ENTITY RELATIONSHIP DIAGRAM CONCEPTUAL DESIG
Degree of Relationship:
Binary because Two Entities.
Type of Relationship:
On to One.
Cardinality:
Both with Mandatory
.
Sql Coding:
The coding we are using are truly compiled well and tested well. Our system runs
well and performs queries well and with meaningful output. We are truly sure that
this database system will give the desired needed and wanted by the system
administrator wants. Coding is as follows:
-- Create Database
DROP DATABASE IF EXISTS `pakistan international cricket stadiums`;
CREATE DATABASE IF NOT EXISTS `pakistan international cricket stadiums`;
USE `pakistan international cricket stadiums`;
CREATE TABLE if not exists `pakistan international cricket stadiums`.`CITY`
(
city_Id int (10) primary key,
city_name varchar (20) not null,
city_province varchar (16) not null
);
CREATE TABLE if not exists `pakistan international cricket
stadiums`.`INT_STADIUM`
(
stadium_name varchar (20) PRIMARY KEY,
stadium_capacity varchar (15) not null,
stadium_yearbuilt varchar (15) not null,
city_Id Int (10) not null,
constraint fk_city_Id foreign key (city_Id) references `pakistan international
cricket stadiums`.`city` (city_Id) ON UPDATE cascade ON DELETE cascade
);
-- inserting values
INSERT INTO `pakistan international cricket stadiums`.`CITY` VALUES
(21,'Karachi','sindh'),(42,'lahore','punjab') ,(52,'sialkot','pujab'),
(22,'hyderabad','sindh'),(55,'gujranwala','punjab'),(91,'peshawar','kpk'),(51,'rawalpindi'
,'punjab'),(56,'sheikhupura','punjab'),
(81,'queeta','balochistan'),(61,'multan','punjab');
INSERT INTO `pakistan international cricket stadiums`.`INT_STADIUM` VALUES
('national cricket stadium',34228,1995,21) ,
('gadaffi cricket stadium',27000,1959,42) , ('iqbal stadium',18000,1978,52) , ('jinnah
stadium',20000,1920,22) ,
('niaz stadium',15000,1959,55) , ('jinnah1 stadium',20000,1989,91) , ('arbab
stadium',20000,1995,51) ,
('Rawalpindi Cricket Stadium',25000,1993,56) , ('sheikhupura
stadium',27000,1996,81) , ('Multan cricket stadium',30000,2001,61);
-- Joining
-- cross join
SELECT * from `pakistan international cricket stadiums`.`int_stadium` CROS JOIN
`pakistan international cricket stadiums`.`city`;
-- Left Join
select city_name, stadium_name, stadium_capacity from `pakistan international
cricket stadiums`.`city` left join `pakistan international cricket
stadiums`.`INT_stadium` on `city`.`city_Id` = `INT_stadium`.`city_id`
-- Right Join
select city_name, stadium_name, stadium_capacity from `pakistan international
cricket stadiums`.`city` right join `pakistan international cricket
stadiums`.`INT_stadium` on `city`.`city_Id` = `INT_stadium`.`city_id`
-- inner join
select city_name, stadium_name, stadium_capacity from `pakistan international
cricket stadiums`.`city` inner join `pakistan international cricket
stadiums`.`INT_stadium` on `int_stadium`.`stadium_capacity`=
`INT_stadium`.`stadium_capacity`
-- left outer join
select city_province, stadium_name, stadium_capacity, stadium_yearbuilt from
`pakistan international cricket stadiums`.`city` left outer join `pakistan international
cricket stadiums`.`INT_stadium` on `int_stadium`.`stadium_capacity`=
`INT_stadium`.`stadium_capacity`
-- right outer join
select city_province, stadium_name, stadium_capacity, stadium_yearbuilt from
`pakistan international cricket stadiums`.`city` left outer join `pakistan international
cricket stadiums`.`INT_stadium` on `int_stadium`.`stadium_name`=
`INT_stadium`.`stadium_name`
-- ALGEBRA
-- Selection or Restriction Operation
/*SELECT * FROM `pakistan international cricket stadiums`.`city`
WHERE city_id > 50;*/
-- Projection operation
/*SELECT stadium_name, stadium_yearbuilt FROM `pakistan international cricket
stadiums`.`int_stadium`;*/
-- A U B (city)
/*
SELECT city_name from `pakistan international cricket stadiums`.`city`
UNION
SELECT city_id FROM `pakistan international cricket stadiums`.`int_stadium`;
*/
-- A - B (city)
/*
SELECT distinct stadium_name FROM `pakistan international cricket
stadiums`.`int_stadium`
WHERE city_id NOT IN (select distinct stadium_name from `pakistan international
cricket stadiums`.`int_stadium`);
*/
-- set Difference Operation
/*
SELECT DISTINCT city_id FROM `pakistan international cricket stadiums`.`city`
WHERE city_id NOT IN(
SELECT distinct city_id FROM `pakistan international cricket
stadiums`.`int_stadium`)
*/
-- Intersection Operation
/*
SELECT distinct city_id from `pakistan international cricket stadiums`.`city`
WHERE city_id not IN(select distinct city_id from `pakistan international cricket
stadiums`.`int_stadium`);
SELECT city_id from `pakistan international cricket stadiums`.`city`
UNION
SELECT city_id from `pakistan international cricket stadiums`.`int_stadium`;
SELECT distinct city_id FROM `pakistan international cricket stadiums`.`city`
WHERE city_id NOT IN (select distinct city_id from `pakistan international cricket
stadiums`.`int_stadium`);
*/
-- cartesian product
/*
SELECT * from `pakistan international cricket stadiums`.`int_stadium` CROS JOIN
`pakistan international cricket stadiums`.`city`;
*/
CITY
ATTRIBUTE DATA TYPE LENGTH KEY
CityId Varchar 10 Primary key
CityName varchar 20
CityProvince Varchar 16
INT_STADIUM
ATTTRIBUTE DATA TYPE LENGTH KEY
stadiumName Varchar 20 Primary key
StadiumCapacity int 15
StadiumYearbuilt int 15
CityId varchar 10 Foreign Key
RELATIONSHIP DIAGRAM
CHAPTER THREE
Physical Implementation
Creating database:
Creating table CITY:
Creating table Int_Stadium:
Database created

Contenu connexe

Similaire à Report of database of list of Pakistan international cricket stadiums

information practices cbse based paper.docx
information practices cbse based paper.docxinformation practices cbse based paper.docx
information practices cbse based paper.docxKapilSidhpuria3
 
RedisConf18 - Redis Memory Optimization
RedisConf18 - Redis Memory OptimizationRedisConf18 - Redis Memory Optimization
RedisConf18 - Redis Memory OptimizationRedis Labs
 
[MongoDB.local Bengaluru 2018] Introduction to MongoDB Stitch
[MongoDB.local Bengaluru 2018] Introduction to MongoDB Stitch[MongoDB.local Bengaluru 2018] Introduction to MongoDB Stitch
[MongoDB.local Bengaluru 2018] Introduction to MongoDB StitchMongoDB
 
36579601 packet-tracer-manual
36579601 packet-tracer-manual36579601 packet-tracer-manual
36579601 packet-tracer-manualRomanyhanna
 
A miało być tak... bez wycieków
A miało być tak... bez wyciekówA miało być tak... bez wycieków
A miało być tak... bez wyciekówKonrad Kokosa
 
Cricket Score and Winning Prediction
Cricket Score and Winning PredictionCricket Score and Winning Prediction
Cricket Score and Winning PredictionIRJET Journal
 
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...MongoDB
 
How I make a podcast website using serverless technology in 2023
How I make a podcast website using serverless technology in 2023How I make a podcast website using serverless technology in 2023
How I make a podcast website using serverless technology in 2023Shengyou Fan
 
M.Tech: Algorithm Analysis and Design Assignment II
M.Tech: Algorithm Analysis and Design Assignment IIM.Tech: Algorithm Analysis and Design Assignment II
M.Tech: Algorithm Analysis and Design Assignment IIVijayananda Mohire
 
To Develop Fully Automated Conveyor Belt for Industries.
To Develop Fully Automated Conveyor Belt for Industries.To Develop Fully Automated Conveyor Belt for Industries.
To Develop Fully Automated Conveyor Belt for Industries.HasanRashid20
 
Comparative Analysis of Machine Learning Models for Cricket Score and Win Pre...
Comparative Analysis of Machine Learning Models for Cricket Score and Win Pre...Comparative Analysis of Machine Learning Models for Cricket Score and Win Pre...
Comparative Analysis of Machine Learning Models for Cricket Score and Win Pre...IRJET Journal
 
Nyc open data project ii -- predict where to get and return my citibike
Nyc open data project ii -- predict where to get and return my citibikeNyc open data project ii -- predict where to get and return my citibike
Nyc open data project ii -- predict where to get and return my citibikeVivian S. Zhang
 
Design and Development of Return Analysis System Between Purchase and Rental ...
Design and Development of Return Analysis System Between Purchase and Rental ...Design and Development of Return Analysis System Between Purchase and Rental ...
Design and Development of Return Analysis System Between Purchase and Rental ...ijtsrd
 

Similaire à Report of database of list of Pakistan international cricket stadiums (20)

information practices cbse based paper.docx
information practices cbse based paper.docxinformation practices cbse based paper.docx
information practices cbse based paper.docx
 
Nosql part3
Nosql part3Nosql part3
Nosql part3
 
RedisConf18 - Redis Memory Optimization
RedisConf18 - Redis Memory OptimizationRedisConf18 - Redis Memory Optimization
RedisConf18 - Redis Memory Optimization
 
[MongoDB.local Bengaluru 2018] Introduction to MongoDB Stitch
[MongoDB.local Bengaluru 2018] Introduction to MongoDB Stitch[MongoDB.local Bengaluru 2018] Introduction to MongoDB Stitch
[MongoDB.local Bengaluru 2018] Introduction to MongoDB Stitch
 
myrep
myrepmyrep
myrep
 
36579601 packet-tracer-manual
36579601 packet-tracer-manual36579601 packet-tracer-manual
36579601 packet-tracer-manual
 
A miało być tak... bez wycieków
A miało być tak... bez wyciekówA miało być tak... bez wycieków
A miało być tak... bez wycieków
 
Cricket Score and Winning Prediction
Cricket Score and Winning PredictionCricket Score and Winning Prediction
Cricket Score and Winning Prediction
 
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
 
How I make a podcast website using serverless technology in 2023
How I make a podcast website using serverless technology in 2023How I make a podcast website using serverless technology in 2023
How I make a podcast website using serverless technology in 2023
 
RahulCV
RahulCVRahulCV
RahulCV
 
JavaTalks: OOD principles
JavaTalks: OOD principlesJavaTalks: OOD principles
JavaTalks: OOD principles
 
Structure
StructureStructure
Structure
 
IRJET-V8I11270.pdf
IRJET-V8I11270.pdfIRJET-V8I11270.pdf
IRJET-V8I11270.pdf
 
hotel-management-report.pdf
hotel-management-report.pdfhotel-management-report.pdf
hotel-management-report.pdf
 
M.Tech: Algorithm Analysis and Design Assignment II
M.Tech: Algorithm Analysis and Design Assignment IIM.Tech: Algorithm Analysis and Design Assignment II
M.Tech: Algorithm Analysis and Design Assignment II
 
To Develop Fully Automated Conveyor Belt for Industries.
To Develop Fully Automated Conveyor Belt for Industries.To Develop Fully Automated Conveyor Belt for Industries.
To Develop Fully Automated Conveyor Belt for Industries.
 
Comparative Analysis of Machine Learning Models for Cricket Score and Win Pre...
Comparative Analysis of Machine Learning Models for Cricket Score and Win Pre...Comparative Analysis of Machine Learning Models for Cricket Score and Win Pre...
Comparative Analysis of Machine Learning Models for Cricket Score and Win Pre...
 
Nyc open data project ii -- predict where to get and return my citibike
Nyc open data project ii -- predict where to get and return my citibikeNyc open data project ii -- predict where to get and return my citibike
Nyc open data project ii -- predict where to get and return my citibike
 
Design and Development of Return Analysis System Between Purchase and Rental ...
Design and Development of Return Analysis System Between Purchase and Rental ...Design and Development of Return Analysis System Between Purchase and Rental ...
Design and Development of Return Analysis System Between Purchase and Rental ...
 

Plus de Abdullah Khosa

Chanel and H&M Brand Comparison.pdf
Chanel and H&M Brand Comparison.pdfChanel and H&M Brand Comparison.pdf
Chanel and H&M Brand Comparison.pdfAbdullah Khosa
 
Policy directives of federal government of pakistan for Enterprise Architecture
Policy directives of federal government of pakistan for Enterprise ArchitecturePolicy directives of federal government of pakistan for Enterprise Architecture
Policy directives of federal government of pakistan for Enterprise ArchitectureAbdullah Khosa
 
Face to Face Communication and Text Based Communication in HCI
Face to Face Communication and Text Based Communication in HCIFace to Face Communication and Text Based Communication in HCI
Face to Face Communication and Text Based Communication in HCIAbdullah Khosa
 
Cloud Artificial Intelligence services
Cloud Artificial Intelligence servicesCloud Artificial Intelligence services
Cloud Artificial Intelligence servicesAbdullah Khosa
 
Digital centralization
Digital centralizationDigital centralization
Digital centralizationAbdullah Khosa
 
Diamond water-paradox (A Theory)
Diamond water-paradox (A Theory)Diamond water-paradox (A Theory)
Diamond water-paradox (A Theory)Abdullah Khosa
 
The 5th generation (5G)
The 5th generation (5G)The 5th generation (5G)
The 5th generation (5G)Abdullah Khosa
 
Database of list of Pakistan international cricket stadiums
Database of list of Pakistan international cricket stadiumsDatabase of list of Pakistan international cricket stadiums
Database of list of Pakistan international cricket stadiumsAbdullah Khosa
 
Benefits of Search engine optimization
Benefits of Search engine optimizationBenefits of Search engine optimization
Benefits of Search engine optimizationAbdullah Khosa
 
Physical Database Design & Performance
Physical Database Design & PerformancePhysical Database Design & Performance
Physical Database Design & PerformanceAbdullah Khosa
 
Advanced Normalization
Advanced NormalizationAdvanced Normalization
Advanced NormalizationAbdullah Khosa
 
Relational Algebra & Calculus
Relational Algebra & CalculusRelational Algebra & Calculus
Relational Algebra & CalculusAbdullah Khosa
 
Advance database system(part 8)
Advance database system(part 8)Advance database system(part 8)
Advance database system(part 8)Abdullah Khosa
 
Advance database system(part 7)
Advance database system(part 7)Advance database system(part 7)
Advance database system(part 7)Abdullah Khosa
 
Advance database system(part 6)
Advance database system(part 6)Advance database system(part 6)
Advance database system(part 6)Abdullah Khosa
 

Plus de Abdullah Khosa (20)

Chanel and H&M Brand Comparison.pdf
Chanel and H&M Brand Comparison.pdfChanel and H&M Brand Comparison.pdf
Chanel and H&M Brand Comparison.pdf
 
Mycin presentation
Mycin presentationMycin presentation
Mycin presentation
 
Policy directives of federal government of pakistan for Enterprise Architecture
Policy directives of federal government of pakistan for Enterprise ArchitecturePolicy directives of federal government of pakistan for Enterprise Architecture
Policy directives of federal government of pakistan for Enterprise Architecture
 
Face to Face Communication and Text Based Communication in HCI
Face to Face Communication and Text Based Communication in HCIFace to Face Communication and Text Based Communication in HCI
Face to Face Communication and Text Based Communication in HCI
 
STRATEGIC PAY PLANS
STRATEGIC PAY PLANSSTRATEGIC PAY PLANS
STRATEGIC PAY PLANS
 
AI services in google
AI services in googleAI services in google
AI services in google
 
Cloud Artificial Intelligence services
Cloud Artificial Intelligence servicesCloud Artificial Intelligence services
Cloud Artificial Intelligence services
 
Digital centralization
Digital centralizationDigital centralization
Digital centralization
 
Diamond water-paradox (A Theory)
Diamond water-paradox (A Theory)Diamond water-paradox (A Theory)
Diamond water-paradox (A Theory)
 
The 5th generation (5G)
The 5th generation (5G)The 5th generation (5G)
The 5th generation (5G)
 
Database of list of Pakistan international cricket stadiums
Database of list of Pakistan international cricket stadiumsDatabase of list of Pakistan international cricket stadiums
Database of list of Pakistan international cricket stadiums
 
Attitude and behavior
Attitude and behaviorAttitude and behavior
Attitude and behavior
 
Digital signature
Digital signatureDigital signature
Digital signature
 
Benefits of Search engine optimization
Benefits of Search engine optimizationBenefits of Search engine optimization
Benefits of Search engine optimization
 
Physical Database Design & Performance
Physical Database Design & PerformancePhysical Database Design & Performance
Physical Database Design & Performance
 
Advanced Normalization
Advanced NormalizationAdvanced Normalization
Advanced Normalization
 
Relational Algebra & Calculus
Relational Algebra & CalculusRelational Algebra & Calculus
Relational Algebra & Calculus
 
Advance database system(part 8)
Advance database system(part 8)Advance database system(part 8)
Advance database system(part 8)
 
Advance database system(part 7)
Advance database system(part 7)Advance database system(part 7)
Advance database system(part 7)
 
Advance database system(part 6)
Advance database system(part 6)Advance database system(part 6)
Advance database system(part 6)
 

Dernier

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 

Dernier (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 

Report of database of list of Pakistan international cricket stadiums

  • 1. Assignment Top Sheet Department of Computer Science Student Registration Number GROUP 3 Class Section Semester BSIT A 5th Course Name Course Code Advance Database Systems CS-208 Student’s Full Name Group No. 3 Assign Date: Submission Deadline: After Mid Term 29-02-2018 Course Leader Name Course Coordinator Name Muhammad Nouman Farooq Mam. Maryam Assignment No.: Assignment Details: Semester Project Pakistan International Cricket Stdiums Instructions to Student: Please Note: Work presented in an assessment must be your own. Plagiarism is where a student copies work from another source, published or unpublished (including the work of another student) and fails to acknowledge the influence of another’s work or to attribute quotes to the author. Plagiarism is an academic offence and the penalty can be serious. To detect possible plagiarism we may submit your work to the national plagiarism detection facility. This searches the Internet and an extensive database of reference material including other students’ work to identify. I have read the above information and I confirm that this work is my own and that it may be processed and stored in the manner described. Group No. 3 29-02-2018 Signature:.................................................................... Date: ................................................................. Please leave sufficient time to meet the given deadline and do not leave the handing-in of assignments to the last minute. You are being allowed meaningfull time for any system problems or other issues.
  • 2. PROJECT Pakistan International Cricket Stadiums Group MEMBERS: Name Roll no 1- Sarmad Ali 01-BSIT5A 2- Muhammad Abdullah 02- BSIT5A 3- Hashaam Altaf 38- BSIT5A 4-Syed Muhammad Hanif 45- BSIT5A 5- Noman Rasool 25- BSIT5A 6- Usama Yousaf 48- BSIT5A 7- Hamza Hanif 06- BSIT5A 8- Imran Khan 46- BSIT5A
  • 3. Contents: Chapter 1: Preliminary study Chapter 2: ERD( Entity Relation Diagram) and Relational Database Chapter 3: Physical Implementation
  • 4. Chapter One Preliminary study: We are going to discuss about the cricket stadiums that are internationally declared for cricket matches in Pakistan. We collected the data from the internet that how many cricket stadiums are in Pakistan that are declared internationally for cricket matches. We came to know that there are 11 Cricket Stadiums for international matches. These cricket stadiums are located in many different cities of Pakistan but there is only one international cricket stadium in one city and a city can have only and only one cricket stadium in it. • National cricket stadium of Karachi that was built in 1995 and has the crowd capacity of 34,228. • Gaddafi cricket Stadium of Lahore that was built in 1959 and has the crowd capacity of 27,000. • Iqbal Stadium of Faisalabad that was built in 1978 and has the crowd capacity of 18,000. • Jinnah Stadium of Sialkot that was built in 1920 and has a crowd capacity of 20,000. • Niaz Stadium of Hyderabad that was built in 1959 and has a crowd capacity of 15,000. • Jinnah Stadium of Gujranwala that was built in 1989 and has the crowd capacity of 20,000. • Arbab Stadium of Peshawar that was built in 1995 and has the crowd capacity of 20,000. • Rawalpindi Cricket Stadium of Rawalpindi that was built in 1993 and has a crowd capacity of 25,000. • Sheikhupura Cricket Stadium of Sheikhupura that was built in 1996 and has the crowd capacity of 27,000. • Ayyub Cricket Stadium of Peshawar that was built in 1978 and has the crowd capacity of 32,000.
  • 5. • Multan Cricket Stadium of Multan that was built in 2001 and has the crowd capacity of 30,000. • So, After getting this we completed our Requirements about our Project Related Data. Modules of Pakistan International Cricket Stadiums: 1. CITY: It consists of cityId, cityName and cityProvince. 2. INT_STADIUMS: It consist of stadiumName, stadiumCapacity, stadiumYearbuilt and CityId.
  • 6. INTRODUCTION INTIAL TASKS This Pakistan International Cricket Stadiums project report gives a brief description on the tasks worked out, development of ERD from the given scenario whereby we had two entities City and Int_Stadiums with their attributes. Afterward we were able to build the database using MySQL whereby we two four tables that we developed from the ERD which had two entities thus by breaking many to many relationships we were able to come up with two tables. Thus the other task was to write and apply the SQL queries that could answer the provided questions. Purpose The purpose for this project is to design a database system for Pakistan International Cricket Stadiums and to show the list of all the International Cricket Stadiums of Pakistan. Objectives and Outcomes To come with the database-driven front end applications, queries or requests on the front end application.
  • 7. CHAPTER TWO INTRODUCTION This chapter gives a dramatically presentation of the scenario provided through the use of the Entity relationship diagram. ENTITY RELATIONSHIP DIAGRAM CONCEPTUAL DESIG Degree of Relationship: Binary because Two Entities. Type of Relationship: On to One. Cardinality: Both with Mandatory .
  • 8. Sql Coding: The coding we are using are truly compiled well and tested well. Our system runs well and performs queries well and with meaningful output. We are truly sure that this database system will give the desired needed and wanted by the system administrator wants. Coding is as follows: -- Create Database DROP DATABASE IF EXISTS `pakistan international cricket stadiums`; CREATE DATABASE IF NOT EXISTS `pakistan international cricket stadiums`; USE `pakistan international cricket stadiums`; CREATE TABLE if not exists `pakistan international cricket stadiums`.`CITY` ( city_Id int (10) primary key, city_name varchar (20) not null, city_province varchar (16) not null ); CREATE TABLE if not exists `pakistan international cricket stadiums`.`INT_STADIUM` ( stadium_name varchar (20) PRIMARY KEY, stadium_capacity varchar (15) not null, stadium_yearbuilt varchar (15) not null, city_Id Int (10) not null, constraint fk_city_Id foreign key (city_Id) references `pakistan international cricket stadiums`.`city` (city_Id) ON UPDATE cascade ON DELETE cascade );
  • 9. -- inserting values INSERT INTO `pakistan international cricket stadiums`.`CITY` VALUES (21,'Karachi','sindh'),(42,'lahore','punjab') ,(52,'sialkot','pujab'), (22,'hyderabad','sindh'),(55,'gujranwala','punjab'),(91,'peshawar','kpk'),(51,'rawalpindi' ,'punjab'),(56,'sheikhupura','punjab'), (81,'queeta','balochistan'),(61,'multan','punjab'); INSERT INTO `pakistan international cricket stadiums`.`INT_STADIUM` VALUES ('national cricket stadium',34228,1995,21) , ('gadaffi cricket stadium',27000,1959,42) , ('iqbal stadium',18000,1978,52) , ('jinnah stadium',20000,1920,22) , ('niaz stadium',15000,1959,55) , ('jinnah1 stadium',20000,1989,91) , ('arbab stadium',20000,1995,51) , ('Rawalpindi Cricket Stadium',25000,1993,56) , ('sheikhupura stadium',27000,1996,81) , ('Multan cricket stadium',30000,2001,61); -- Joining -- cross join SELECT * from `pakistan international cricket stadiums`.`int_stadium` CROS JOIN `pakistan international cricket stadiums`.`city`;
  • 10. -- Left Join select city_name, stadium_name, stadium_capacity from `pakistan international cricket stadiums`.`city` left join `pakistan international cricket stadiums`.`INT_stadium` on `city`.`city_Id` = `INT_stadium`.`city_id` -- Right Join select city_name, stadium_name, stadium_capacity from `pakistan international cricket stadiums`.`city` right join `pakistan international cricket stadiums`.`INT_stadium` on `city`.`city_Id` = `INT_stadium`.`city_id` -- inner join select city_name, stadium_name, stadium_capacity from `pakistan international cricket stadiums`.`city` inner join `pakistan international cricket stadiums`.`INT_stadium` on `int_stadium`.`stadium_capacity`= `INT_stadium`.`stadium_capacity` -- left outer join select city_province, stadium_name, stadium_capacity, stadium_yearbuilt from `pakistan international cricket stadiums`.`city` left outer join `pakistan international cricket stadiums`.`INT_stadium` on `int_stadium`.`stadium_capacity`= `INT_stadium`.`stadium_capacity` -- right outer join select city_province, stadium_name, stadium_capacity, stadium_yearbuilt from `pakistan international cricket stadiums`.`city` left outer join `pakistan international cricket stadiums`.`INT_stadium` on `int_stadium`.`stadium_name`= `INT_stadium`.`stadium_name`
  • 11. -- ALGEBRA -- Selection or Restriction Operation /*SELECT * FROM `pakistan international cricket stadiums`.`city` WHERE city_id > 50;*/ -- Projection operation /*SELECT stadium_name, stadium_yearbuilt FROM `pakistan international cricket stadiums`.`int_stadium`;*/ -- A U B (city) /* SELECT city_name from `pakistan international cricket stadiums`.`city` UNION SELECT city_id FROM `pakistan international cricket stadiums`.`int_stadium`; */ -- A - B (city) /* SELECT distinct stadium_name FROM `pakistan international cricket stadiums`.`int_stadium` WHERE city_id NOT IN (select distinct stadium_name from `pakistan international cricket stadiums`.`int_stadium`); */ -- set Difference Operation /*
  • 12. SELECT DISTINCT city_id FROM `pakistan international cricket stadiums`.`city` WHERE city_id NOT IN( SELECT distinct city_id FROM `pakistan international cricket stadiums`.`int_stadium`) */ -- Intersection Operation /* SELECT distinct city_id from `pakistan international cricket stadiums`.`city` WHERE city_id not IN(select distinct city_id from `pakistan international cricket stadiums`.`int_stadium`); SELECT city_id from `pakistan international cricket stadiums`.`city` UNION SELECT city_id from `pakistan international cricket stadiums`.`int_stadium`; SELECT distinct city_id FROM `pakistan international cricket stadiums`.`city` WHERE city_id NOT IN (select distinct city_id from `pakistan international cricket stadiums`.`int_stadium`); */ -- cartesian product /* SELECT * from `pakistan international cricket stadiums`.`int_stadium` CROS JOIN `pakistan international cricket stadiums`.`city`; */
  • 13. CITY ATTRIBUTE DATA TYPE LENGTH KEY CityId Varchar 10 Primary key CityName varchar 20 CityProvince Varchar 16 INT_STADIUM ATTTRIBUTE DATA TYPE LENGTH KEY stadiumName Varchar 20 Primary key StadiumCapacity int 15 StadiumYearbuilt int 15 CityId varchar 10 Foreign Key
  • 16. Creating table CITY: Creating table Int_Stadium: