@dbase varchar(100) SELECT [@DBASE] as [DBASE] ,[DET_NOMINALDR] as [Nominal Code] ,[DET_DATE] as [Date] ,[DET_PERIODNUMBR] as [Period] ,[DET_YEAR] as [Year] ,[DET_DESCRIPTION] as [Narrative] ,[DET_NETT] as [D/C] FROM @dbase.[dbo].[SL_PL_NL_DETAIL] WHERE [Nominal Code] = 'DT10000' and [Date] = '2011-08-01'
|sql how to count case when||4||18|
|Each Group By expression must contain at least one column that is not an outer reference||5||21|
|SQL Server Import/Error Wizard error||12||19|