Base d datos
create table Cliente
(
cod_Cliente char (8) not null primary key,
dni char(8) not null,
apellidos varchar(30) not null,
nombre varchar(20) not null,
sexo varchar(1)not null,
fechaNacimiento datetime null,
direccion varchar(40) null,
telefono varchar(10) null,
)
create table Encomienda
(
cod_Encomienda char(8) not null primary key,
fechaRegistrodatetime not null,
destinatario varchar(50) not null,
origen varchar(20) not null,
destino varchar(20) not null,
peso float not null,
tipoEncomienda varchar(10) not null,
direccionvarchar(30) not null,
tipo_Entrega varchar(20) not null,
importe money not null,
)
create table Venta
(
cod_Venta char(8) not null primary key,
numeroAsiento integer not null,
fechaVentadatetime not null,
precio money not null,
)
create table Vendedor
(
cod_Vendedor char(8) not null primary key,
dni char(8) not null,
apellidos varchar(25) not null,
nombres varchar(20) notnull,
fechaNacimiento datetime not null,
direccion varchar(30) not null,
telefono varchar(10) not null,
)
create table Cronograma
(
cod_Cronograma char(8) not null primary key,fechaSalida datetime not null,
horaSalida datetime not null,
destino varchar(25) not null,
origen varchar(25) not null,
)
create table Recibo
(
cod_Recibo char(8) not null primary key,
totalmoney not null,
descripcion varchar(30) null,
)
create table BoletoPasaje
(
serie char(8) not null primary key,
fechaRegistro datetime not null,
fechaPostergacion datetime not null,razonSocial varchar(30) null,
ruc char(11) null,
)
create table Bus
(
placa char(6) not null primary key,
totaldeAsientos integer not null,
fechaFabricacion datetime null,
estado varchar(20)null,
)
create table DetalleBus
(
tipoServicio varchar(15) not null,
)
create table Chofer
(
cod_Chofer char(8) not null,
nombres varchar(25) not null,
apellidos varchar(25) not...
Regístrate para leer el documento completo.