Está en la página 1de 5

TRABAJO:

BASE DE DATOS

NOMBRE:
DIANA MILENA BALCERO PRIMO
40130

ANALISIS Y DESARROLLO DEL SISTEMA DE INFORMACION


SENA
BOGOTA D.C 2010
TRABAJO:
BASE DE DATOS

ENTREGADO POR:
DIANA MILENA BALCERO PRIMO
40130

PARA:
SANDRA RUEDA

ANALISIS Y DESARROLLO DEL SISTEMA DE INFORMACION


SENA
BOGOTA D.C 2010
TALLER DE TRANSPORTE

Create Database transportes

Create Table Terminal1

te_CodiTerm Char(6) primary Key not null,

te_DireTerm Varchar(30),

te_NombTerm Varchar(35)

Create Table Flotas1

fl_CodiFlot Char (8) primary Key not null,

fl_NombFlot Varchar (35),

fl_CodiTerm Char (6) References terminal not null

Create Table Buses1

bu_Placa Char(8) primary Key not null,

bu_CodiFlot Char(8) References flotas not null,

bu_Capacidad Int,

bu_FechFabri Datetime,

bu_Tipo Tinyint

)
Create Table Rutas1

ru_CodiRuta Tinyint primary Key not null,

ru_NombRuta Varchar(35),

ru_ValoPasaj Money

Create Table Conductors1

co_CodiConduc Int primary Key not null,

co_NombConduc Varchar(35),

co_DireConduc Varchar(35),

co_fechaNaci Datetime

Create Table viajes1

vi_placa Char(8) primary Key not null,

vi_CodiRuta Tinyint References rutas not null,

vi_NumePasajero Int,

vi_FechViaje Datetime,

vi_CodiConduc Int References conductores not null,

vi_NumeVuelta Int,

vi_ValoPasaje Money

También podría gustarte