CREATE DATABASE  IF NOT EXISTS `pruebas_saber` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `pruebas_saber`;
-- MySQL dump 10.13  Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: 127.0.0.1    Database: pruebas_saber
-- ------------------------------------------------------
-- Server version	5.5.5-10.1.28-MariaDB

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `fact_saber`
--

DROP TABLE IF EXISTS `fact_saber`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fact_saber` (
  `sk_tiempo` int(11) DEFAULT NULL,
  `sk_colegio` bigint(20) unsigned NOT NULL,
  `sk_genero` bigint(20) NOT NULL,
  `sk_ubicacion_geo` bigint(20) NOT NULL,
  `sk_estrato` bigint(20) NOT NULL,
  `punt_lectura_critica_11` int(11) DEFAULT '0',
  `punt_lectura_critica_pro` int(11) DEFAULT '0',
  `punt_matematicas_11` int(11) DEFAULT '0',
  `punt_matematicas_pro` int(11) DEFAULT '0',
  `punt_ingles_11` int(11) DEFAULT '0',
  `punt_ingles_pro` int(11) DEFAULT '0',
  `punt_comp_ciudadanas_11` int(11) DEFAULT '0',
  `punt_comp_ciudadanas_pro` int(11) DEFAULT '0',
  KEY `sk_tiempo` (`sk_tiempo`),
  KEY `sk_colegio` (`sk_colegio`),
  KEY `sk_genero` (`sk_genero`),
  KEY `sk_ubicacion_geo` (`sk_ubicacion_geo`),
  KEY `sk_estrato` (`sk_estrato`),
  CONSTRAINT `fact_saber_ibfk_1` FOREIGN KEY (`sk_tiempo`) REFERENCES `dim_tiempo` (`sk_tiempo`),
  CONSTRAINT `fact_saber_ibfk_2` FOREIGN KEY (`sk_colegio`) REFERENCES `dim_colegio` (`sk_colegio`),
  CONSTRAINT `fact_saber_ibfk_3` FOREIGN KEY (`sk_genero`) REFERENCES `dim_genero` (`sk_genero`),
  CONSTRAINT `fact_saber_ibfk_4` FOREIGN KEY (`sk_ubicacion_geo`) REFERENCES `dim_ubicacion_geo` (`sk_ubicacion_geo`),
  CONSTRAINT `fact_saber_ibfk_5` FOREIGN KEY (`sk_estrato`) REFERENCES `dim_estrato` (`sk_estrato`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-05-03 19:56:11
