Viewing 6 posts - 1 through 7 (of 7 total)
Thanks. Imu! Your logic has solved my problem. Just took it a step further.
Cheers
Dude!!:-D
July 12, 2010 at 5:18 am
The SK is obviously UNIQUE to the Row in the AccountStructure Table. Problem is - AccountStructure_FixedCosts contains all the FixedCosts Codes, Some but not ALL exist in the Account Structure...
July 12, 2010 at 4:41 am
This is the whole gist of the issue: (Note- I'm trying a TOP 1 WHERE...) but obviously that isn't kosher!!!
DROP TABLE #tempGlMastDesc
SELECT DISTINCT STRM.*
--INTO #tempGlMastDesc
FROM
(SELECT
SUBSTRING(STRU.[Account_BK],9,6) AS Account_Code
--, DrCr_IND
,...
July 11, 2010 at 9:33 am
USE [BSUA_MastMeta]
GO
/****** Object: Table [MastMeta].[DIM_AccountStructure] Script Date: 07/11/2010 17:24:27 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [MastMeta].[DIM_AccountStructure](
[Account_SK] [int] NOT NULL,
[Account_BK] [varchar](50) NOT NULL,
[Account] [varchar](100) NULL,
[DrCr_IND]...
July 11, 2010 at 9:25 am
Any one - so long as it is the same row referenced!
July 11, 2010 at 9:12 am
Lowell, this is bad architecture. There is a primary key column but the reference FK is to the actually account Number value, which is duplicated (the account number stats the...
July 11, 2010 at 9:10 am
Viewing 6 posts - 1 through 7 (of 7 total)