0% found this document useful (0 votes)
23 views3 pages

Parte Tres Parcial

The document contains the SQL dump for creating and populating 3 tables in a MariaDB database called Fechhas. The tables are estmat, estudiante and materia and they contain data about students, the materials they study and course codes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views3 pages

Parte Tres Parcial

The document contains the SQL dump for creating and populating 3 tables in a MariaDB database called Fechhas. The tables are estmat, estudiante and materia and they contain data about students, the materials they study and course codes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

-- MariaDB dump 10.19 Distrib 10.4.

28-MariaDB, for Win64 (AMD64)


--
-- Host: localhost Database: Fechhas
-- ------------------------------------------------------
-- Server version 10.4.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 utf8mb4 */;
/*!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 */;

--
-- Current Database: `Fechhas`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `fechhas` /*!40100 DEFAULT CHARACTER SET
utf8mb4 COLLATE utf8mb4_general_ci */;

USE `Fechhas`;

--
-- Table structure for table `estmat`
--

DROP TABLE IF EXISTS `estmat`;


/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `estmat` (
`Carnet` varchar(3) NOT NULL,
`CodigoM` varchar(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `estmat`
--

LOCK TABLES `estmat` WRITE;


/*!40000 ALTER TABLE `estmat` DISABLE KEYS */;
INSERT INTO `estmat` VALUES ('001','003'),('001','005'),('002','002'),
('002','003'),('002','004'),('003','004'),('003','001'),('004','004'),
('004','005'),('005','002'),('005','005'),('006','001'),('006','005'),
('007','003'),('007','004'),('008','001'),('008','004'),('008','005');
/*!40000 ALTER TABLE `estmat` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `estudiante`
--

DROP TABLE IF EXISTS `estudiante`;


/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `estudiante` (
`Carnet` varchar(3) NOT NULL,
`Nombre` varchar(50) NOT NULL,
`Fechamatricula` datetime DEFAULT NULL,
`Fechanacimineto` datetime DEFAULT NULL,
`Sexo` varchar(10) DEFAULT NULL,
PRIMARY KEY (`Carnet`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `estudiante`
--

LOCK TABLES `estudiante` WRITE;


/*!40000 ALTER TABLE `estudiante` DISABLE KEYS */;
INSERT INTO `estudiante` VALUES ('001','maria','2010-01-15 00:00:00','1966-05-13
00:00:00','f'),('002','juana','2010-06-08 00:00:00','1973-01-22 00:00:00','f'),
('003','carlos','2010-06-28 00:00:00','1976-03-05 00:00:00','m'),('004','maria
parra','2010-06-11 00:00:00','1976-08-15 00:00:00','f'),('005','pablo
neruda','2011-02-13 00:00:00','1990-08-25 00:00:00','m'),('006','bladimir
palacio','2011-02-04 00:00:00','1994-09-03 00:00:00','m'),('007','apolonia
serrano','2011-02-28 00:00:00','1994-03-09 00:00:00','f'),('008','federico
serrano','2011-03-05 00:00:00','1991-06-10 00:00:00','m');
/*!40000 ALTER TABLE `estudiante` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `materia`
--

DROP TABLE IF EXISTS `materia`;


/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `materia` (
`CodigoM` varchar(3) NOT NULL,
`Descripcion` varchar(50) NOT NULL,
`Valor` int(10) NOT NULL,
PRIMARY KEY (`CodigoM`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `materia`
--

LOCK TABLES `materia` WRITE;


/*!40000 ALTER TABLE `materia` DISABLE KEYS */;
INSERT INTO `materia` VALUES ('001','programa I',32000),('002','programa
II',328000),('003','programa III',40000),('004','matematicas',30000),
('005','inglT',30000);
/*!40000 ALTER TABLE `materia` ENABLE KEYS */;
UNLOCK TABLES;
/*!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 2023-09-09 14:54:10

You might also like