Staging table layout:
USE [Sales]
CREATE TABLE [dbo].[stg_sales](
[SEQ] [int] NOT NULL,
[TYP] [varchar](1) NULL,
[SALEDATE] [varchar](50) NULL,
[INVOICED] [varchar](50) NULL,
[WEEKDATE] [varchar](50) NULL,
[EWK] [varchar](50) NULL,
[ZWK] [varchar](50) NULL,
[IY] [varchar](50) NULL,
[WK] [varchar](50) NULL,
[ROMO] [varchar](50) NULL,
[ROYR] [varchar](50) NULL,
[YRTD] [varchar](50) NULL,
GO
Destination Table Layout:
USE [Sales]
CREATE TABLE [dbo].[sales](
[SEQ] [int] NOT NULL,
[TYP] [varchar](1) NULL,
[SALEDATE] [varchar](50) NULL,
[INVOICED] [varchar](50) NULL,
[WEEKDATE] [varchar](50) NULL,
[EWK] [varchar](50) NULL,
[ZWK] [varchar](50) NULL,
[IY] [varchar](50) NULL,
[WK] [varchar](50) NULL,
[ROMO] [varchar](50) NULL,
[ROYR] [varchar](50) NULL,
[YRTD] [varchar](50) NULL,
GO
|