0401 Modelado de Tablas


Elaborar una versión simplificada de duolingo donde un usuario pueda ir conociendo su avance en el aprendizaje del idioma inglés.
Se pide una explicación clara de lo que el sistema realizará, su temática:  


Nombre de la aplicación: IDIOMAS
Ambientación: ANIME

Maestro : MISS AUSTRALIA
Nacionalidad : AUSTRALIA
Donde se encuentra : Nueva Gales del Sur
cual es el escenario : Byron Bay 







DISEÑO ORIGIANAL:


DISEÑO FINAL:

AHORA INSTRUCCIONES:


//32.- Borrar la Base de Datos duolingo si existe
DROP SCHEMA IF EXISTS `DUOLINGO` ;
//33.- Crear el esquema duolingo si no existe
CREATE SCHEMA IF NOT EXISTS `DUOLINGO` ;
//34.-Activar el nuevo esquema creado llamado duolingo
USE `DUOLINGO` ;
//35.-Eliminar la tabla Fortaleza si existe y luego crearla
DROP TABLE IF EXISTS `DUOLINGO`.`FORTALEZA` ;
CREATE TABLE IF NOT EXISTS `DUOLINGO`.`FORTALEZA` (
`id` INT NOT NULL AUTO_INCREMENT COMMENT 'llave primaria',
`castillo` INT NULL COMMENT 'la fortaleza se divide en castillos, en total son 8',
`categoria` VARCHAR(65) NULL COMMENT 'indica el set de palabras a incluir',
`ciudad` VARCHAR(45) NULL COMMENT 'ciudad de la fortaleza',
PRIMARY KEY (`id`)
)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8 COLLATE = utf8_spanish_ci
COMMENT = 'TABLA DE NIVELES DEL IDIOMA INGLÉS PARA LA APLICACIÓN IDIOMAS';
//36.- Eliminar la tabla ejercicios si existe y luego crearla
DROP TABLE IF EXISTS `DUOLINGO`.`EJERCICIOS` ;
CREATE TABLE IF NOT EXISTS `DUOLINGO`.`EJERCICIOS` (
`id` INT NOT NULL AUTO_INCREMENT,
`nivel` INT NULL COMMENT 'nivel de los ejercicios',
`subnivel` INT NULL,
`español` VARCHAR(245) NULL COMMENT 'IDOMA ESPAÑOL',
`ingles` VARCHAR(245) NULL COMMENT 'IDIOMA INGLÉS',
`tipo` VARCHAR(45) NULL DEFAULT 'FRASE' COMMENT 'TIPO DE EJERCICIO',
`idfortaleza` INT NULL,
PRIMARY KEY (`id`),
CONSTRAINT `fk_EJERCICIOS_FORTALEZA`
FOREIGN KEY(`idfortaleza`)
REFERENCES `DUOLINGO`.`FORTALEZA`(`id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_spanish_ci
COMMENT = 'TABLA DE EJERCICIOS POR FORTALEZA';
//37.- insertar los valores de fortaleza

insert into FORTALEZA(castillo,categoria,ciudad) values(0,"INTRODUCCIÓN","INTRO");
insert into FORTALEZA(castillo,categoria,ciudad) values(0,"INTRODUCCIÓN","SALUDOS");
insert into FORTALEZA(castillo,categoria,ciudad) values(0,"INTRODUCCIÓN","VIAJES");
insert into FORTALEZA(castillo,categoria,ciudad) values(0,"INTRODUCCIÓN","CAFETERIA");
insert into FORTALEZA(castillo,categoria,ciudad) values(0,"INTRODUCCIÓN","FAMILIA");
insert into FORTALEZA(castillo,categoria,ciudad) values(0,"INTRODUCCIÓN","TIENDA");
insert into FORTALEZA(castillo,categoria,ciudad) values(0,"INTRODUCCIÓN","ESTUDIOS");
insert into FORTALEZA(castillo,categoria,ciudad) values(0,"INTRODUCCIÓN","OCUPACIONES");
insert into FORTALEZA(castillo,categoria,ciudad) values(0,"INTRODUCCIÓN","ENCUENTROS");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","RUTINAS");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","EMOCIONES");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","COMIDA");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","TIEMPO");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","PARIENTES");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","EN CASA");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","COMPRAS");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","ACTIVIDADES");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","ACTIVIDADES 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","CLIMA");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","AVENTURAS");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","RESTAURANTE");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","GENTE");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","EN CASA 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(1,"CASTILLO AZUL","ANIMALES");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","DESCRIPCIÓN");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","GENTE 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","DIRECCIÓN");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","ACTIVIDADES 3");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","ESCUELA");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","GUSTOS");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","DESCRIPCIÓN 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","HORARIO");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","HORARIO 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","AVENTURAS 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","HISTORIAS");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","HISTORIAS 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","HISTORIAS 3");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","TRABAJO");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","FRASES");
insert into FORTALEZA(castillo,categoria,ciudad) values(2,"CASTILLO AMARILLO","MEMORIAS");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","NATURALEZA");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","SALUD");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","AMOR");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","POSESIÓN");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","HISTORIAS 4");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","ESCUELA 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","HORARIO 3");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","DESAYUNO");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","HOGAR");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","PROBLEMAS");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","ANIMALES 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","CHRISTMAS");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","LOGROS");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","RECETAS");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","ACCIDENTES");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","CONSEJOS");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","COMPRAS 3");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","CUENTOS");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","OCUPACIÓN 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","SALUD 2");
insert into FORTALEZA(castillo,categoria,ciudad) values(3,"CASTILLO VERDE","ESCUELAS 3");


//38.- Comprobando las inserciones
SELECT categoria,count(*)
FROM `FORTALEZA`
group by categoria

//39.- realizamos la inserción de registros en la tabla ejercicios
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(1,0,"0","UNA MUJER DE MEXICO","A WOMAN FROM MEXICO","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(1,0,"0","YO NO SOY MARIA","I’M NOT MARIA","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(1,0,"0","YO NO SOY DE EXPAÑA","I’M NOT FROM SPAIN","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(1,0,"0","¿TÚ ERES DE ESPAÑA?","ARE YOU FROM SPAIN?","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(1,0,"0","ELLA NO ES DE MÉXICO","SHE ISN’T FROM MEXICO","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(1,0,"0","TÚ NOMBRE ES LUIS","YOUR NAME IS LUIS","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(1,0,"0","YO SOY ROSA, ¿CÚAL ES TÚ NOMBRE?","I’M ROSA, WHAT IS YOUR NAME?","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(1,0,"0","ELLA ES UNA NIÑA","SHE IS A GIRL","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(1,0,"0","ÉL ES UN NIÑO","HE IS A BOY","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","HOLA, SOY LUIS","HELLO, I AM LUIS","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","UN NIÑO Y UNA NIÑA","A BOY AND A GIRL","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","BUENAS NOCHES","GOOD NIGHT","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","HOLA, ¿COMO ESTAS?","HELLO, HOW ARE YOU?","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","YO HABLO ESPAÑOL","I SPEAK SPANISH","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","MUY BIEN. GRACIAS","VERY GOOD, THANKS","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","TÚ HABLAS ESPAÑOL","DO YOU SPEAK ENGLISH?","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","YO ESTOY MUY BIEN, ¿Y TÚ?","I’M VERY GOOD, AND YOU?","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","ESTOY BIEN, GRACIAS","I’M GOOD, THANK YOU","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","LO SIENTO, YO NO HABLO ESPAÑOL","SORRY, I DON’T SPEAK SPANISH","FRASE");
insert into ejercicios(idfortaleza, nivel, subnivel, español, ingles, tipo)
values(2,0,"0","TÚ NOMBRE, POR FAVOR","YOUR NAME, PLEASE","FRASE");

13 comentarios:

  1. En una grande y fría ciudad llamada Quebec en una pequeña isla situada en el río San Lorenzo habita un payaso divertido buscando que los pequeños se interesen por aprender mediante la plataforma APRENDIENDO.

    Brenda

    ResponderBorrar
  2. Dada la importancia de hablar 2 lenguas la aplicación se desarrolla del otro lado del mundo, en un país iónico de la lengua inglesa "Australia" y con personajes tipicos de la cultura oriental "ANIME"

    ResponderBorrar
  3. Este blog ha sido eliminado por un administrador de blog.

    ResponderBorrar
  4. Hablar un segundo idioma tiene muchas ventajas. Entre ellas, el poder hablar y comunicarse con personas en otro idioma y que mejor forma de hacerlo que con la aplicación jazyky con su intuitivo y amigable diseño basado en temas de cómics y en la ciudad de brujas, Bélgica con sus cautivan tes paisajes, podrás aprender de manera fácil he interactiva en cualquier lugar donde te encuentres de manera cómoda y sencilla permitiendo a cualquiera aprender un nuevo idioma.
    Erick Rosas

    ResponderBorrar
  5. Leen (Learning English) es una aplicación diseñada para poder enseñar Ingles a los niños, por medio de un personaje que se encuentra viajando a través de países, enseñando temas de ingles y vocabulario relacionado al país que visita con la ayuda de un personaje animado llamado "Truff" auxiliando a los niños con el aprendizaje del idioma

    ResponderBorrar
  6. learning inglish es una aplicación desarrollada en california dada la importancia del idioma ingles basada con personajes de disney para la mejor manera de aprendizaje para niños ,con "stitch" como característica principal de la aplicación.

    ResponderBorrar
  7. Este comentario ha sido eliminado por el autor.

    ResponderBorrar

  8. Interactivo de Manera Fácil y divertida con tus hijos el idioma ingles
    y diviértete aprendido sobre los dibujos de animales acuáticos, donde viven,
    que comen y cual es su historia, con esta aplicación puedes Viajar desde la comodidad de tu casa y aprender
    sobre los animales acuáticos.

    ResponderBorrar
  9. Zannin es un juego diseñado para prender el idioma japonés, guiado por un sensei (Nameless) en un recorrido por Akihabara Tokio, con un estilo Ciber punk deberas resolver retos y juegos que te ayudarán a comnezar yy mejorar a hablar y escribir japonés

    ResponderBorrar
  10. Si tienes la intención de aprender ingles de manera sencilla YoAprendo es lo que necesitas, te ayuda paso a paso para que cumplas con este objetivo, de una manera amigable con ayuda de tu maestro Emile el cual sera tu guiá y apoyo, esta herramienta te ayuda en tu perfil personal ya que esto es un gran logro y algo necesario, diseñado para todo el publico mayor de 15 años no lo pienses, comienza pronto!!!.

    ResponderBorrar
  11. Skiper es una aplicación en la cuál aprenderás con nuestro amigo virtual pingüino de manera interactiva e informática de manera fácil & rápida.
    Te ayudará en tu vida cotidiana
    ¡Que esperas descarga la aplicación,es completamente gratuita!.
    La aplicación es para todo el público en general

    ResponderBorrar