Declare
@intTableCount int
set @intTableCount = (select COUNT(*) from INFORMATION_SCHEMA.TABLES
where TABLE_SCHEMA = 'dbo'
and TABLE_NAME = 'Table_Name')
select @intTableCount
It will trow an error if you omit the ( and ) .
Till Next Time
ABC Classification
-
I was asked to make a simple ABC classification for a sales measures. I
combined exists with TopPercent to identify:
- Class A = between the top 0 and...
No comments:
Post a Comment