0% found this document useful (0 votes)
42 views7 pages

Como Dines

This document contains the SQL code to create tables and insert data into a database for a university system. It includes tables for courses, faculty, students, teachers, and class groups. The SQL code defines the structure of each table by specifying column names and data types, then provides INSERT statements to populate the tables with initial data.

Uploaded by

mayrarocker
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views7 pages

Como Dines

This document contains the SQL code to create tables and insert data into a database for a university system. It includes tables for courses, faculty, students, teachers, and class groups. The SQL code defines the structure of each table by specifying column names and data types, then provides INSERT statements to populate the tables with initial data.

Uploaded by

mayrarocker
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

NOMBRE: MAYRA RICARDO

CÓDIGO: 200920029309
ANEXOS (TALLE SQL: COMODINES)

-- phpMyAdmin SQL Dump


-- version 2.10.2
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 18-04-2011 a las 22:19:17
-- Versión del servidor: 5.0.45
-- Versión de PHP: 5.2.3

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Base de datos: `dbweb`
--

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `carreras`
--

CREATE TABLE `carreras` (


`carrera` char(2) collate utf8_bin NOT NULL,
`nombre` varchar(50) collate utf8_bin NOT NULL,
`semestres` int(11) NOT NULL,
`jornada` char(1) collate utf8_bin NOT NULL,
`costo` double NOT NULL,
PRIMARY KEY (`carrera`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Volcar la base de datos para la tabla `carreras`
--

INSERT INTO `carreras` VALUES (0x3430, 0x507369636f6c6f676961, 10, 0x4e, 3500000);


INSERT INTO `carreras` VALUES (0x3830, 0x486973746f726961, 10, 0x4e, 2500000);
INSERT INTO `carreras` VALUES (0x3530, 0x54726162616a6f20536f6369616c, 10, 0x4e,
2000000);
INSERT INTO `carreras` VALUES (0x3630, 0x496e6769656e6572696120436976696c, 10,
0x4e, 3000000);
INSERT INTO `carreras` VALUES (0x3730,
0x496e6769656e6572696120496e647573747269616c, 10, 0x4e, 5000000);
INSERT INTO `carreras` VALUES (0x3130, 0x42696f6d6564696361, 10, 0x4e, 3700000);
INSERT INTO `carreras` VALUES (0x3230, 0x4d65646963696e61, 10, 0x44, 5000000);
INSERT INTO `carreras` VALUES (0x3330, 0x466973696f74657261706961, 10, 0x44,
3700000);
INSERT INTO `carreras` VALUES (0x3930, 0x456e6665726d65726961, 10, 0x44, 4000000);
INSERT INTO `carreras` VALUES (0x3131, 0x50656461676f67696120496e66616e74696c,
10, 0x44, 3000000);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `docentes`
--

CREATE TABLE `docentes` (


`docente` char(2) collate utf8_bin NOT NULL,
`nombre` varchar(50) collate utf8_bin NOT NULL,
`tipocontrato` char(2) collate utf8_bin NOT NULL,
`direccion` varchar(40) collate utf8_bin NOT NULL,
`telefono` varchar(20) collate utf8_bin NOT NULL,
`edad` int(11) NOT NULL,
`extranjero` tinyint(1) NOT NULL,
`rh` char(2) collate utf8_bin NOT NULL,
`genero` char(1) collate utf8_bin NOT NULL,
PRIMARY KEY (`docente`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Volcar la base de datos para la tabla `docentes`
--

INSERT INTO `docentes` VALUES (0x3331, 0x5361756c204d616c646f6e61646f, 0x5446,


0x43616c6c65203830204e2e203532202d203633, 0x36383131343532, 52, 0, 0x4f2b,
0x4d);
INSERT INTO `docentes` VALUES (0x3332,
0x416e647265732046656c697065204f7274697a, 0x5446,
0x436172726572612039204e2e2030202d20323020, 0x35363839373431, 33, 0, 0x4f2d,
0x4d);
INSERT INTO `docentes` VALUES (0x3333,
0x476c6f726961204d61726961205061727261204d6f7261, 0x5446,
0x43616c6c6520313533204e2e2039202d203332, 0x36383432353332, 45, 0, 0x4f2b,
0x46);
INSERT INTO `docentes` VALUES (0x3334,
0x4a756c696f2041726576616c6f20427573746f73, 0x5446,
0x43617272657261203130204e2e203333202d203230, 0x37353432333135, 26, 0, 0x4f2d,
0x4d);
INSERT INTO `docentes` VALUES (0x3335,
0x4d6172696120416e67656c69636120526f6a6173, 0x5446,
0x43616c6c6520313238204e2e203532202d203633, 0x38353632333134, 41, 0, 0x4f2b,
0x46);
INSERT INTO `docentes` VALUES (0x3336,
0x4d6175726963696f2053616e61627269612047757469657272657a, 0x5446,
0x43617272657261203831204e2e203432202d203039, 0x37313732343935, 46, 0, 0x4f2d,
0x4d);
INSERT INTO `docentes` VALUES (0x3337,
0x4c696c69616e61204c6f70657a20526961c3b16f, 0x5446,
0x43616c6c65203739204e2e203235202d203130, 0x32353633313437, 27, 0, 0x4f2b,
0x46);
INSERT INTO `docentes` VALUES (0x3338,
0x5a616469612049766f6e6e652050756c69646f, 0x5446,
0x4361727265726120313233204e2e203437202d203230, 0x38373431323536, 39, 0,
0x412b, 0x46);
INSERT INTO `docentes` VALUES (0x3339,
0x4a756c6961204d617274696e657a20506572657a, 0x5446,
0x43616c6c65203230204e2e203235202d203130, 0x38343632333532, 52, 0, 0x4f2b,
0x46);
INSERT INTO `docentes` VALUES (0x3431,
0x57696c64657220416e647265792054656c6c657a, 0x5446,
0x43617272657261203931204e2e203432202d203039, 0x35363233313437, 27, 0,
0x412b, 0x46);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `estudiantes`
--

CREATE TABLE `estudiantes` (


`estudiantes` char(4) collate utf8_bin NOT NULL,
`nombre` varchar(50) collate utf8_bin NOT NULL,
`cedula` char(13) collate utf8_bin NOT NULL,
`carrera` char(4) collate utf8_bin NOT NULL,
`semestre` int(11) NOT NULL,
`edad` int(11) NOT NULL,
PRIMARY KEY (`estudiantes`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Volcar la base de datos para la tabla `estudiantes`
--
INSERT INTO `estudiantes` VALUES (0x3132,
0x477265697a2050726965746f204c696e61726573, 0x31303234383938363532, 0x3130,
10, 23);
INSERT INTO `estudiantes` VALUES (0x3133,
0x416c656a616e647261205061727261204875727461646f, 0x31303234353633393837,
0x3230, 10, 19);
INSERT INTO `estudiantes` VALUES (0x3134,
0x4d61797261205269636172646f205a756c75616761, 0x31303435373839333639,
0x3330, 10, 21);
INSERT INTO `estudiantes` VALUES (0x3135,
0x5a6f7261696461204d656e64657a20526f6d65726f, 0x31343738393633353432, 0x3430,
10, 24);
INSERT INTO `estudiantes` VALUES (0x3137,
0x4d6175726963696f204d6f6e7461c3b1657a, 0x31343536323337383936, 0x3530, 10,
25);
INSERT INTO `estudiantes` VALUES (0x3138,
0x5269636172646f20506172726120416d617961, 0x31303234373839333531, 0x3630, 10,
22);
INSERT INTO `estudiantes` VALUES (0x3139, 0x416e61204179616c61,
0x3235333639373839, 0x3730, 10, 28);
INSERT INTO `estudiantes` VALUES (0x3230, 0x4a75616e20526f6472696775657a20,
0x31303234353233373839, 0x3830, 10, 28);
INSERT INTO `estudiantes` VALUES (0x3231, 0x416e6472656120416c766172657a,
0x3534323738393633, 0x3930, 10, 30);
INSERT INTO `estudiantes` VALUES (0x3232, 0x4a75616e20466f7265726f,
0x3538393633313437, 0x3131, 10, 21);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `facultades`
--

CREATE TABLE `facultades` (


`codigo` varchar(2) collate utf8_bin NOT NULL,
`nombres` varchar(50) collate utf8_bin default NULL,
`director` varchar(35) collate utf8_bin NOT NULL,
`semestre` int(11) NOT NULL,
PRIMARY KEY (`codigo`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Volcar la base de datos para la tabla `facultades`
--
INSERT INTO `facultades` VALUES (0x3935, 0x4369656e63696173204a7572696469636173,
0x416c667265646f204761727a6f6e, 10);
INSERT INTO `facultades` VALUES (0x3937, 0x4369656e6369617320536f6369616c6573,
0x4761627269656c204365737065646573204d6f6e74616e61, 10);
INSERT INTO `facultades` VALUES (0x3936, 0x507369636f6c6f676961,
0x416c656a616e64726120526f6472696775657a, 10);
INSERT INTO `facultades` VALUES (0x3938, 0x4d65646963696e61,
0x416e61204d617274696e657a204d656e64657a, 10);
INSERT INTO `facultades` VALUES (0x3933, 0x456475636163696f6e,
0x4a6176696572204564756172646f204d6f6e7461c3b161, 10);
INSERT INTO `facultades` VALUES (0x3939, 0x456e6665726d65726961,
0x41647269616e6120506f76656461205061727261, 10);
INSERT INTO `facultades` VALUES (0x3839,
0x4369656e636961732045636f6e6f6d6963617320792041646d696e69737472617469766
1, 0x436c6175646961204d617263656c61204875727461646f20526f6a6173, 10);
INSERT INTO `facultades` VALUES (0x3837,
0x436f6d756e69636163696f6e2079204c656e6775616a65,
0x57696c6c69616d20426f686f727175657a20, 10);
INSERT INTO `facultades` VALUES (0x3836,
0x4369656e63696173206465206c612053616c7564,
0x4d6172746861204d6f737175657261, 10);
INSERT INTO `facultades` VALUES (0x3835, 0x496e67656e696572696120,
0x416c656a616e647261205269636f20506172646f, 10);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `grupo`
--

CREATE TABLE `grupo` (


`grupo` char(3) collate utf8_bin NOT NULL,
`carrera` varchar(50) collate utf8_bin NOT NULL,
`semestre` int(11) NOT NULL,
`sede` varchar(50) collate utf8_bin NOT NULL,
`materia` varchar(50) collate utf8_bin NOT NULL,
`cupo` varchar(50) collate utf8_bin NOT NULL,
PRIMARY KEY (`grupo`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Volcar la base de datos para la tabla `grupo`
--

INSERT INTO `grupo` VALUES (0x313231, 0x4d65646963696e61, 0, 0x39,


0x4369656e6369617320466973696f6c6f6769636173, 0x373030);
INSERT INTO `grupo` VALUES (0x313232, 0x4465726563686f, 0, 0x3130,
0x486973746f726961206465206c617320496465617320506f6c697469636173, 0x373030);
INSERT INTO `grupo` VALUES (0x313233, 0x507369636f6c6f676961, 0, 0x39,
0x46756e64616d656e746163696f6e20507369636f6c6f67696361, 0x3330);
INSERT INTO `grupo` VALUES (0x313234, 0x54726162616a6f20536f6369616c, 0, 0x38,
0x4570697374656d6f6c6f676961206465206c6173204369656e6369617320536f6369616c
6573, 0x3235);
INSERT INTO `grupo` VALUES (0x313235, 0x456e6665726d65726961, 0, 0x35,
0x53616c7564202d20456e6665726d65646164, 0x3136);
INSERT INTO `grupo` VALUES (0x313236, 0x50656461676f67696120496e66616e74696c, 0,
0x37, 0x43756c747572612c20456475636163696f6e2079204465736172726f6c6c6f,
0x3330);
INSERT INTO `grupo` VALUES (0x313237, 0x486973746f726961, 0, 0x35,
0x486973746f7269612064656c204d756e646f20416e746967756f20416d65726963616e6f,
0x3235);
INSERT INTO `grupo` VALUES (0x313238, 0x42696f6d6564696361, 0, 0x36,
0x42696f6d6563c3a16e6963612059204d6563616e69736d6f73, 0x3235);
INSERT INTO `grupo` VALUES (0x313239, 0x496e67656e696572696120436976696c, 0,
0x37, 0x566961732046657272656173, 0x3231);
INSERT INTO `grupo` VALUES (0x313330,
0x496e67656e696572696120496e647573747269616c, 0, 0x3130,
0x5465726d6f64696e616d696361, 0x3330);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `materias`
--

CREATE TABLE `materias` (


`materia` char(3) collate utf8_bin NOT NULL,
`creditos` int(2) NOT NULL,
`nombre` varchar(50) collate utf8_bin NOT NULL,
`docente` char(2) collate utf8_bin NOT NULL,
`intencidad` int(11) NOT NULL,
`jornada` char(1) collate utf8_bin NOT NULL,
PRIMARY KEY (`materia`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Volcar la base de datos para la tabla `materias`
--

INSERT INTO `materias` VALUES (0x413130, 3,


0x4369656e6369617320466973696f6c6f676963617320, 0x3331, 3, 0x4e);
INSERT INTO `materias` VALUES (0x413230, 3,
0x486973746f726961206465206c617320496465617320506f6c69746963617320, 0x3332,
3, 0x4e);
INSERT INTO `materias` VALUES (0x413330, 3,
0x46756e64616d656e746163696f6e20507369636f6c6f6769636120, 0x3333, 3, 0x4e);
INSERT INTO `materias` VALUES (0x413430, 2,
0x4570697374656d6f6c6f676961206465206c6173204369656e6369617320536f6369616c
657320, 0x3334, 3, 0x4e);
INSERT INTO `materias` VALUES (0x413530, 2,
0x53616c7564202d20456e6665726d65646164, 0x3335, 3, 0x4e);
INSERT INTO `materias` VALUES (0x413630, 3,
0x43756c747572612c20456475636163696f6e2079204465736172726f6c6c6f, 0x3336, 3,
0x44);
INSERT INTO `materias` VALUES (0x413730, 2,
0x486973746f7269612064656c204d756e646f20416e746967756f20416d65726963616e6f,
0x3337, 4, 0x4e);
INSERT INTO `materias` VALUES (0x413830, 3,
0x42696f6d6563c3a16e6963612059204d6563616e69736d6f7320, 0x3338, 5, 0x44);
INSERT INTO `materias` VALUES (0x413930, 3, 0x566961732046657272656173, 0x3339, 5,
0x44);
INSERT INTO `materias` VALUES (0x413931, 2, 0x5465726d6f64696e616d696361, 0x3431,
6, 0x54);

You might also like