--===== If the test table already exists, drop it IF OBJECT_ID('TempDB..#tmpCustomerAmount','U') IS NOT NULL DROP TABLE #tmpCustomerAmountCREATE TABLE #tmpCustomerAmount ( [id] [int] IDENTITY(1,1) NOT NULL, AmountSold [decimal](13, 2) NULL, AmountLeftWith [decimal](13, 2) NULL )SET IDENTITY_INSERT #tmpCustomerAmount ONiNSERT INTO #tmpCustomerAmount (ID, AmountSold, AmountLeftWith) SELECT 1,123.00,0 UNION ALLSELECT 2,130000,0 UNION ALLSELECT 3,500.00,0 UNION ALLSELECT 4,700.00,577 UNION ALL SELECT 5,300.00, 0SELECT * FROM #tmpCustomerAmount