|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Thursday, March 14, 2013 4:15 AM
Points: 3,240,
Visits: 4,960
|
|
Comments posted to this topic are about the item Count Number of Words and Characters
---------------------------------------------------------------------------------------------------------------------------------------------------------------------- Sometimes, winning is not an issue but trying. You can check my BLOG here
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, August 10, 2012 4:04 AM
Points: 6,
Visits: 17
|
|
| Hello sir in your number of words count code, what is use of while block because it is done without using while block
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, July 23, 2012 10:23 PM
Points: 380,
Visits: 16
|
|
| If I am not wrong, that while loop will never end.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Wednesday, August 18, 2010 1:51 AM
Points: 28,
Visits: 15
|
|
ra.shinde, you are correct, the while loop will never end. Besides from your first function you can derive the word count as well. See code below:
-- Number of specific Characters Declare @aa varchar(100) Set @aa = 'SQL Server 2005 Atif Sheikh A' Select Len(@aa) - Len(Replace(@aa, ' ', '')) + 1
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Thursday, March 14, 2013 4:15 AM
Points: 3,240,
Visits: 4,960
|
|
WHILE loop is there by mistake (was testing something before posting it). Please ignore it.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------- Sometimes, winning is not an issue but trying. You can check my BLOG here
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, July 20, 2011 6:39 AM
Points: 5,
Visits: 28
|
|
| i posted that solution years ago, you just copied it and messed it up, please delete it
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Thursday, March 14, 2013 4:15 AM
Points: 3,240,
Visits: 4,960
|
|
The Danish Dynamo (7/30/2010) i posted that solution years ago, you just copied it and messed it up, please delete it
Really ? And how "messed up"?
---------------------------------------------------------------------------------------------------------------------------------------------------------------------- Sometimes, winning is not an issue but trying. You can check my BLOG here
|
|
|
|