Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this document? Why not share!

Taller4

on

  • 564 views

 

Statistics

Views

Total Views
564
Views on SlideShare
564
Embed Views
0

Actions

Likes
1
Downloads
12
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Taller4 Taller4 Document Transcript

  • TRABAJO 3 BASES DE DATOS<br />PRESENTADO POR: <br />JOHAN OSPINA<br />PRESENTADO A:<br />ING.: EDGAR SANDOVAL<br />INGENIERIA DE SISTEMAS V<br />BASES DE DATOS<br />TULUA-VALLE<br />UCEVA<br />2010-2<br />Creación De Tablas<br />TABLAS BASICAS<br />ESTADOORDEN <br />LIBROSESTADOS<br />FORMADEPAGO<br />POSICIONES<br />CLIENTES<br />AUTORES<br />OTRAS TABLAS<br />EMPLEADOS<br />ORDENES<br />LIBROS<br />TABLAS FINALES<br />LIBROS AUTORES<br />LIBROS ORDENES<br />TABLAS<br />ESTADO ORDEN<br />CREATE TABLE " ESTADOORDEN" <br /> (" ESTADOID" NUMBER NOT NULL ENABLE, <br />" ESTADODESCRIP" VARCHAR2(50) NOT NULL ENABLE, <br /> CONSTRAINT " ESTADOORDEN_PK" PRIMARY KEY (" ESTADOID" ) ENABLE<br /> )<br />LIBROSESTADOS<br />CREATE TABLE " LIBROSESTADOS" <br /> (" CONDICIONID" NUMBER NOT NULL ENABLE, <br />" NOMBRECOND" CHAR(50) NOT NULL ENABLE, <br />" DESCRIPCION" VARCHAR2(50) NOT NULL ENABLE, <br /> CONSTRAINT " LIBROSESTADOS_PK" PRIMARY KEY (" CONDICIONID" ) ENABLE<br /> )<br />FORMADEPAGO<br />CREATE TABLE " FORMADEPAGO" <br /> (" PAGOID" NUMBER NOT NULL ENABLE, <br />" PAGODESCRIP" VARCHAR2(50) NOT NULL ENABLE, <br /> CONSTRAINT " FORMADEPAGO_PK" PRIMARY KEY (" PAGOID" ) ENABLE<br /> )<br />POSICIONES<br />CREATE TABLE " POSICIONES" <br /> (" POSICIONID" NUMBER NOT NULL ENABLE, <br />" CARGO" CHAR(50) NOT NULL ENABLE, <br />" DESCRIPCION" VARCHAR2(50) NOT NULL ENABLE, <br /> CONSTRAINT " POSICIONES_PK" PRIMARY KEY (" POSICIONID" ) ENABLE<br /> )<br />CLIENTES<br />CREATE TABLE " CLIENTES" <br /> (" CLIENTEID" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(50) NOT NULL ENABLE, <br />" APELLIDO" CHAR(50) NOT NULL ENABLE, <br />" TELEFONO" NUMBER NOT NULL ENABLE, <br />" DIR1" VARCHAR2(50) NOT NULL ENABLE, <br />" DIR2" VARCHAR2(50) NOT NULL ENABLE, <br />" CIUDAD" CHAR(50) NOT NULL ENABLE, <br />" ESTADO" CHAR(50) NOT NULL ENABLE, <br />" PAIS" CHAR(50) NOT NULL ENABLE, <br />" CP" VARCHAR2(50) NOT NULL ENABLE, <br /> CONSTRAINT " CLIENTES_PK" PRIMARY KEY (" CLIENTEID" ) ENABLE<br /> )<br />AUTORES<br />CREATE TABLE " AUTORES" <br /> (" AUTORID" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(50) NOT NULL ENABLE, <br />" APELLIDO" CHAR(50) NOT NULL ENABLE, <br />" FECHANAC" DATE NOT NULL ENABLE, <br />" FECHAMUERTE" DATE NOT NULL ENABLE, <br />" DESCRIPCION" VARCHAR2(50) NOT NULL ENABLE, <br /> CONSTRAINT " AUTORES_PK" PRIMARY KEY (" AUTORID" ) ENABLE<br /> )<br />LIBROS<br />CREATE TABLE " LIBROS" <br /> (" LIBROID" NUMBER NOT NULL ENABLE, <br />" TITULO" VARCHAR2(50) NOT NULL ENABLE, <br />" EDITOR" VARCHAR2(50) NOT NULL ENABLE, <br />" FECHAED" DATE NOT NULL ENABLE, <br />" COSTO" NUMBER NOT NULL ENABLE, <br />" CONDICIONID" NUMBER NOT NULL ENABLE, <br />" VENDIDO" VARCHAR2(50) NOT NULL ENABLE, <br /> CONSTRAINT " LIBROS_PK" PRIMARY KEY (" LIBROID" ) ENABLE, <br /> CONSTRAINT " LIBROS_FK" FOREIGN KEY (" CONDICIONID" )<br /> REFERENCES " LIBROESTADO" (" CONDICIONID" ) ENABLE<br /> )<br />EMPLEADOS<br />CREATE TABLE " EMPLEADOS" <br /> (" EMPLEADOID" NUMBER NOT NULL ENABLE, <br />" NOMBRE" CHAR(50) NOT NULL ENABLE, <br />" APELLIDO" CHAR(50) NOT NULL ENABLE, <br />" DIR1" VARCHAR2(50) NOT NULL ENABLE, <br />" DIR2" VARCHAR2(50) NOT NULL ENABLE, <br />" CIUDAD" CHAR(50) NOT NULL ENABLE, <br />" ESTADO" CHAR(50) NOT NULL ENABLE, <br />" CP" VARCHAR2(50) NOT NULL ENABLE, <br />" TELEFONO" NUMBER NOT NULL ENABLE, <br />" FECHAING" DATE NOT NULL ENABLE, <br />" POSICIONID" NUMBER NOT NULL ENABLE, <br /> CONSTRAINT " EMPLEADOS_PK" PRIMARY KEY (" EMPLEADOID" ) ENABLE, <br /> CONSTRAINT " EMPLEADOS_FK" FOREIGN KEY (" POSICIONID" )<br /> REFERENCES " POSICIONES" (" POSICIONID" ) ENABLE<br /> )<br />ORDENES<br />CREATE TABLE " ORDENES" <br /> (" ORDENID" NUMBER NOT NULL ENABLE, <br />" CLIENTEID" NUMBER NOT NULL ENABLE, <br />" EMPLEADOID" NUMBER NOT NULL ENABLE, <br />" MONTO" VARCHAR2(50) NOT NULL ENABLE, <br />" FECHAORDEN" DATE NOT NULL ENABLE, <br />" FECHAENVIO" DATE NOT NULL ENABLE, <br />" PAGOID" NUMBER NOT NULL ENABLE, <br />" ESTADOID" NUMBER NOT NULL ENABLE, <br /> CONSTRAINT " ORDENES_PK" PRIMARY KEY (" ORDENID" ) ENABLE, <br /> CONSTRAINT " ORDENES_FK" FOREIGN KEY (" CLIENTEID" )<br /> REFERENCES " CLIENTES" (" CLIENTEID" ) ENABLE, <br /> CONSTRAINT " ORDENES_FK2" FOREIGN KEY (" EMPLEADOID" )<br /> REFERENCES " EMPLEADO" (" EMPLEADOID" ) ENABLE, <br /> CONSTRAINT " ORDENES_FK3" FOREIGN KEY (" PAGOID" )<br /> REFERENCES " FORMADEPAGO" (" PAGOID" ) ENABLE, <br /> CONSTRAINT " ORDENES_FK4" FOREIGN KEY (" ESTADOID" )<br /> REFERENCES " ESTADOORDEN" (" ESTADOID" ) ENABLE<br /> )<br />LIBROSAUTORES<br />CREATE TABLE " LIBROSAUTORES" <br /> (" LIBROID" NUMBER NOT NULL ENABLE, <br />" AUTORID" NUMBER NOT NULL ENABLE, <br /> CONSTRAINT " LIBROSAUTORES_FK" FOREIGN KEY (" LIBROID" )<br /> REFERENCES " LIBROS" (" LIBROID" ) ENABLE, <br /> CONSTRAINT " LIBROSAUTORES_FK2" FOREIGN KEY (" AUTORID" )<br /> REFERENCES " AUTORES" (" AUTORID" ) ENABLE<br /> )<br />LIBROSORDENES<br />CREATE TABLE " LIBROSORDENES" <br /> (" ORDENID" NUMBER NOT NULL ENABLE, <br />" LIBROID" NUMBER NOT NULL ENABLE, <br /> CONSTRAINT " LIBROSORDENES_FK" FOREIGN KEY (" ORDENID" )<br /> REFERENCES " ORDENES" (" ORDENID" ) ENABLE, <br /> CONSTRAINT " LIBROSORDENES_FK2" FOREIGN KEY (" LIBROID" )<br /> REFERENCES " LIBROS" (" LIBROID" ) ENABLE<br /> )<br />INGRESANDO DATOS<br />ESTADOORDEN<br />LIBROSESTADOS<br />FORMADEPAGO<br />POSICIONES<br />CLIENTES<br />AUTORES<br />LIBROS<br />EMPLEADOS<br />ORDENES<br />LIBROSAUTORES<br />45339022733000<br />LIBROSORDENES<br />