Professional Documents
Culture Documents
PostalCode varchar(10),
CountryId integer,
HomePhone varchar(10),
Extension int,
Photo varbinary,
Notes varchar(30),
ReportTo integer not null,
PhotoPath varchar(30))
GO
REFERENCES Clientes
Go
/*Creando relaciones entre Pedidos y Empleados*/
ALTER TABLE Pedidos
ADD CONSTRAINT fk_PedidosEmployee
FOREIGN KEY (EmployeeId)
REFERENCES Employee
Go
--Creacion de la Tabla Pedidos detalle*/
create table PedidosDetalle
(
OrderId integer not null,
ProductId integer not null,
UnitPrice money null,
Quantity integer null,
Discount integer null,
primary key (OrderId, ProductId)
)
GO