Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update oracle_pokemon.sql #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions 1º_generacion/scripts/oracle_pokemon.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ drop table pok_pokemon;

Create table pok_pokemon (
numero_pokedex int primary key ,
nombre varchar2(15) not null,
nombre varchar(15) not null,
peso real not null,
altura real not null
);

Create table pok_tipo_ataque (
id_tipo_ataque int primary key ,
tipo varchar2(8) not null
tipo varchar(8) not null
);


Create table pok_tipo (
id_tipo int primary key ,
nombre varchar2(10) not null,
nombre varchar(10) not null,
id_tipo_ataque int not null,
foreign key (id_tipo_ataque) references pok_tipo_ataque(id_tipo_ataque)
);
Expand All @@ -67,7 +67,7 @@ Create table pok_estadisticas_base (

Create table pok_movimiento (
id_movimiento int primary key ,
nombre varchar2(20) not null,
nombre varchar(20) not null,
potencia int not null,
precision_mov int not null,
descripcion varchar2(500) not null,
Expand Down Expand Up @@ -151,7 +151,7 @@ Create table pok_pokemon_movimiento_forma (

Create table pok_tipo_piedra (
id_tipo_piedra int primary key,
nombre_piedra varchar2(20) not null
nombre_piedra varchar(20) not null
);

Create table pok_piedra (
Expand Down Expand Up @@ -5721,4 +5721,4 @@ select t.nombre as tipo, count(*) as cantidad
from pok_pokemon p, pok_pokemon_tipo pt, pok_tipo t
where p.numero_pokedex = pt.numero_pokedex
and pt.id_tipo = t.id_tipo
group by t.nombre;
group by t.nombre;