0% found this document useful (0 votes)
104 views8 pages

Final Report Kepala Ruangan

The database project involves analyzing pokemon battle tournament data to determine correlations between win rates and factors like pokemon types, moves, abilities, and gender. The team members and their roles are identified. The conceptual database design includes entities like Trainer, Pokemon, Moveset, and Battle Record along with attributes and relationships. The document provides the entity relationship diagram, business rules, data types, and sample SQL queries and outputs to analyze questions about type effectiveness, trainer genders, and move types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views8 pages

Final Report Kepala Ruangan

The database project involves analyzing pokemon battle tournament data to determine correlations between win rates and factors like pokemon types, moves, abilities, and gender. The team members and their roles are identified. The conceptual database design includes entities like Trainer, Pokemon, Moveset, and Battle Record along with attributes and relationships. The document provides the entity relationship diagram, business rules, data types, and sample SQL queries and outputs to analyze questions about type effectiveness, trainer genders, and move types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

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

You might also like