NJC__Documentation::DB

dbo.dt_ms_item_daily_in_move_avg

Description

Properties

Name Value
Collation
File Group
Filestream File Group
Is Partitioned

False

Partitioned Column
Partition Scheme
File Groups
Filestream Partition Scheme
Filestream File Groups
Heap

False

Full Text Catalog
Full Text
Compression NONE
Row Count (~) 67864
Created 10/11/2017 14:47:39
Last Modified 7/17/2020 11:06:45

Columns

Key Name Data Type Length Precision Scale Not Null Identity Rule Default Computed Persisted Description
ms_item_in_move_avg_id bigint 8 19 0

True

1 - 1

False

False

ms_date_business_id int 4 10 0

False

False

False

ms_item_id bigint 8 19 0

False

False

False

total_qty_avg_move decimal 17 38 5

False

False

False

price_avg_move_idr decimal 17 38 5

False

False

False

price_avg_move_usd decimal 17 38 5

False

False

False

ms_item_h_price_id bigint 8 19 0

False

False

False

ms_cost_final_avg_id bigint 8 19 0

False

False

False

Indexes

Key Name Columns Unique Type Description
ix_dt_ms_item_daily_in_move_avg_0001 ms_item_h_price_id

False

ix_dt_ms_item_daily_in_move_avg_00098 ms_item_id

False

NonClusteredIndex-20200717-110641 ms_cost_final_avg_id

False

PK_dt_ms_item_daily_in_move_avg ms_item_in_move_avg_id

True

Foreign Keys

Name Columns Description
FK_dt_ms_item_daily_in_move_avg_dt_ms_date_business ms_date_business_id

SQL Script

CREATE TABLE dbo.dt_ms_item_daily_in_move_avg (
  ms_item_in_move_avg_id bigint IDENTITY,
  ms_date_business_id int NULL,
  ms_item_id bigint NULL,
  total_qty_avg_move decimal(38, 5) NULL,
  price_avg_move_idr decimal(38, 5) NULL,
  price_avg_move_usd decimal(38, 5) NULL,
  ms_item_h_price_id bigint NULL,
  ms_cost_final_avg_id bigint NULL,
  CONSTRAINT PK_dt_ms_item_daily_in_move_avg PRIMARY KEY CLUSTERED (ms_item_in_move_avg_id)
)
ON [PRIMARY]
GO

CREATE INDEX ix_dt_ms_item_daily_in_move_avg_0001
  ON dbo.dt_ms_item_daily_in_move_avg (ms_item_h_price_id)
  INCLUDE (ms_date_business_id, ms_item_id)
  ON [PRIMARY]
GO

CREATE INDEX ix_dt_ms_item_daily_in_move_avg_00098
  ON dbo.dt_ms_item_daily_in_move_avg (ms_item_id)
  ON [PRIMARY]
GO

CREATE INDEX [NonClusteredIndex-20200717-110641]
  ON dbo.dt_ms_item_daily_in_move_avg (ms_cost_final_avg_id)
  ON [PRIMARY]
GO

ALTER TABLE dbo.dt_ms_item_daily_in_move_avg WITH NOCHECK
  ADD CONSTRAINT FK_dt_ms_item_daily_in_move_avg_dt_ms_date_business FOREIGN KEY (ms_date_business_id) REFERENCES dbo.dt_ms_date_business (ms_date_business_id) NOT FOR REPLICATION
GO

ALTER TABLE dbo.dt_ms_item_daily_in_move_avg
  NOCHECK CONSTRAINT FK_dt_ms_item_daily_in_move_avg_dt_ms_date_business
GO