EnVisageOnline/Main/Database/Schema/Tables/dbo.Scenario_Detail_Temp1.sql

17 lines
1.4 KiB
Transact-SQL
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
Run this script on SQL Server 2008 or later. There may be flaws if running on earlier versions of SQL Server.
*/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Scenario_Detail_Temp1]') AND type in (N'U'))
DROP TABLE [dbo].[Scenario_Detail_Temp1]
GO
CREATE TABLE [dbo].[Scenario_Detail_Temp1] (
[ParentID] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ExpenditureCategoryId] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[WeekEndingDate] [datetime] NULL,
[Quantity] [numeric](18, 4) NULL,
[LastUpdate] [datetime] NULL,
[WeekOrdinal] [int] NULL,
[Cost] [numeric](18, 6) NULL
) ON [PRIMARY]
GO