Professional Documents
Culture Documents
Electiva Almacen de Datos
Electiva Almacen de Datos
TECNOLOGÍA EN DESARROLLO
DE SOFTWARE
ASIGNATURA: Electiva 1
Nombre:
Andy Augusto Encarnacion M
Matricula:
2022-0995
Profesor:
Francis Ramirez
Tema:
Almacen de datos
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure
-- --------------------------------------------------
-- --------------------------------------------------
GO
USE [Northwind];
GO
GO
-- --------------------------------------------------
-- --------------------------------------------------
-- --------------------------------------------------
-- --------------------------------------------------
-- --------------------------------------------------
-- --------------------------------------------------
);
GO
);
GO
);
GO
);
GO
);
GO
-- Creating table 'FactOrder'
);
GO
);
GO
);
GO
-- --------------------------------------------------
-- --------------------------------------------------
GO
GO
GO
GO
-- Creating primary key on [EmployeesKey] in table 'DimEmployees'
GO
GO
GO
GO
-- --------------------------------------------------
-- --------------------------------------------------
REFERENCES [dbo].[DimProducts]
([ProductKey])
GO
ON [dbo].[FactOrderDetails]
([DimProductsProductKey]);
GO
REFERENCES [dbo].[DimCategories]
([CategoryKey])
GO
ON [dbo].[DimProducts]
([DimCategoriesCategoryKey]);
GO
REFERENCES [dbo].[DimCustomers]
([CustomerKey])
GO
ON [dbo].[FactOrder]
([DimCustomersCustomerKey]);
GO
REFERENCES [dbo].[DimDates]
([DateKey])
GO
ON [dbo].[FactOrder]
([DimDatesDateKey]);
GO
([ShipperKey])
GO
ON [dbo].[FactOrder]
([DimShippersShipperKey]);
GO
REFERENCES [dbo].[DimEmployees]
([EmployeesKey])
GO
ON [dbo].[FactOrder]
([DimEmployeesEmployeesKey]);
GO
REFERENCES [dbo].[FactOrderDetails]
([ID])
GO
ON [dbo].[FactOrder]
([FactOrderDetailsID]);
GO
-- --------------------------------------------------
-- --------------------------------------------------