When developing table structures for datawarhousing, datamarts or any other purpose where you need an relational data model, it is often that we lose track of the combinations that are made. Especially when the number of tables in our database grows. To manage this problem we must pay attention naming the tables, views, cubes, etc.
[Product_Name] [dbo].[Name] NOT NULL,
[Product_Number] [nvarchar](25) NOT NULL,
[Product_SubcategoryID] [int] NULL,
[Product_ModifiedDate] [datetime] NOT NULL
)
CREATE TABLE [Production].[DHW_Productcategory](
[pk_ProductSubcategory_ID] [int] IDENTITY(1,1) NOT NULL,
[fk_DWH_Product_ProductID] [int] NOT NULL,
[Productcategory_Name] [dbo].[Name] NOT NULL,
[Productcategory_ModifiedDate] [datetime] NOT NULL
)
No comments:
Post a Comment