Pokemon Database
Project Summary
Team Members & Functions
Justin Smith - Conceptual/Database Design
Victor Morales - Business Analysis
Kevin Chau - SQL Implementation
Matt McMillin - Database Design
Business Analysis
(Insert information on what we do here)
Our organization runs pokemon battle tournament’s.
Business Problem, finding correlations from pokemon types, move types, abilities and
genders to the win rates.
With this database the people in the Pokemon industry will have a better look at trainer -
pokemon relationships in a tournament setting. This database will also show statistics based on
battle arena and pokemon relationships based on their type. This database will be able to give
information, so predicting a battle outcome will be more accurate, while also making it easier to
set up fair bracket play for a more competitive tournament.
(Potential Problems)
Order of movesets, combos
(Data Requirements)
int, nvchar255 and decimal
(Questions to focus query on)
Battle wins, group by pokemon Types
Battle wins, group by pokemon Natures
Battle wins, group by pokemon Abilities
Battle wins, group by pokemon Genders
Conceptual & Logical Database Design
Entity and Relationships
• Trainer • Moveset • Battle Record
o Trainer ID o Pokemon ID o Record ID
o Name o Move ID o Wins
o Gender • Move o Losses
o Hometown o Name o Win/Loss Ratio
• Pokemon o Type o Trainer ID
o Pokemon ID • Stadium
• Battle
o Name o Stadium ID
o Battle ID
o Type o Name
o Trainer A ID
o Ability o City
o Trainer B ID
o Nature o Region
o Stadium ID
o Gender
o Trainer ID
E-R Diagram
Business Rules
One Trainer can own zero to many Pokemon
One Pokemon must be owned by exactly one Trainer
One Pokemon must learn exactly one Move set
One Move set must be learned by one Pokemon
One Move set can contain one to many moves
One Move can be contained in zero to many Movesets
One Trainer must have exactly one Battle Record
One Battle Record must belong to exactly one Trainer
One Trainer can fight in zero to many Battles
One Battle must be fought by exactly 2 trainers
One Battle must be hosted in exactly one Stadium
One Stadium can host zero to many battles
Data Type
Relational Schema
SQL Relationship Diagrams
SQL Statements and Query Outputs
1. Question Dragon types are thought to be strongest type
Output
Answer there are 5 dragon Types
2. Question Bug Types are thought to be the weakest Type
Statement
Output
Answer there are 2 bug Type
3. Question how many trainers have female pokemon
Statement
Output
4. How many fighting type moves
Statement
Output
5. Question Fairy is a new type of pokemon and it is unsure what it can do, how many
pokemon have trainers brought with this unknown new move type?
Statement
Output