forked from aravindsuri/ADFTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbo.dimProduct.Table.sql
More file actions
35 lines (30 loc) · 2.01 KB
/
dbo.dimProduct.Table.sql
File metadata and controls
35 lines (30 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
USE [WineStoreDW]
GO
/****** Object: Table [dbo].[dimProduct] Script Date: 01.02.2023 10:49:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dimProduct](
[ProductId] [int] IDENTITY(1,1) NOT NULL,
[ProductNo] [nvarchar](50) NOT NULL,
[ProductName] [nvarchar](255) NOT NULL,
[Province] [nvarchar](50) NOT NULL,
[Region] [nvarchar](50) NOT NULL,
[Type] [nvarchar](50) NULL,
[Winery] [nchar](50) NULL,
[Vintage] [smallint] NOT NULL,
[Score] [smallint] NOT NULL,
[DealerPrice] [int] NOT NULL,
[Markup] [float] NOT NULL,
[ListPrice] [int] NOT NULL,
[UpdatedDate] [datetime] NOT NULL,
[IsRowCurrent] [tinyint] NOT NULL,
[EffectiveDate] [datetime] NOT NULL,
[EndDate] [datetime] NOT NULL,
CONSTRAINT [PK_dimProduct] PRIMARY KEY CLUSTERED
(
[ProductId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO