Está en la página 1de 1

Fuentes Garcia Onasis Humberto

Mario Bernal
create Table Cliente (
idCliente Int Primary Key,
Nombre
Char(20),
ApellidoP char(20),
ApellidoM
char(20),
Direccion
Char(40),
RFC
Char(18)
)
create Table ClienteInt (
IdCliente Int,
Visa
Char(20),
)
create Table Estado (
IdEstado char(5) primary key,
Descripcion char(20)
)
create Table Factura (
IdClienteFk2 int,
IdOrdenFk
int,
Fecha
date,
Precio
numeric(25,2),
Estado
char(25),
Saldo
numeric(10,2),
primary key(IdOrdenFk,IdClienteFk),
)

create Table Pais (


IdPais char(5) primary key,
Nombre char(40),
Visa char(30)
)
create Table Lugar(
IdLugar int primary key,
Ciudad
char(30),
Fk_IdPais char(5),
)

Base de datos

create Table Telefono (


Telefono
numeric(10,0),
Num
Int,
FK_IdCliente Int,
primary key(Num,FK_IdCliente)
)
create Table ClienteNa (
IdCliente Int,
NoTarjet Int,
)
create Table Orden (
IdOrden
int primary key,
IdCliente int,
IdEstado char(3),
Fecha
date,
Precio
numeric(10,2),
MontoPagado numeric(12,2),
)
create Table Pago (
IdPago
int primary key,
Monto
numeric(10,2),
Fecha
date,
NumPago int,
IdOrden int,
)
create Table Visa (
IdVisa
int primary key,
FK_IdCliente int,
FecExpedicion date,
IdPais
char(5),
}

También podría gustarte