Answer by DavidBetteridge
Could you use LIKE instead of the regex. You would need to do 4 different tests, one for 15 digits, one for 12 digits etc. if '3123456789012345' LIKE...
View ArticleAnswer by DavidBetteridge
Have you tried a case statement and a group by instead of a pivot? SELECT Month, sum(case PayerType when 'HMO-B' then NetRevenue else 0 end) AS [HMO-B], sum(case PayerType when 'Medicare Part B' then...
View ArticleAnswer by DavidBetteridge
correct, you will need to add %% around them. If that is what you want to do, then you only need to check for strings with 12 digits in. (A string with 16 digits is also a string with 12 digits). Does...
View ArticleAnswer by DavidBetteridge
create table TestCases (StringToTest varchar(100) not null) insert into TestCases select '12345' insert into TestCases select 'a12345' insert into TestCases select '12345b' insert into TestCases select...
View ArticleAnswer by DavidBetteridge
Is this so you can move them to a new location? If so, the following might help http://msdn.microsoft.com/en-us/library/ms345408.aspx
View Article
More Pages to Explore .....