Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 sql instr

Author  Topic 

sql0009
Starting Member

3 Posts

Posted - 2009-03-05 : 12:14:37
could you use the instr function to determine the number of times the letter 's' appears in an employee name?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-03-05 : 12:22:40
nope. for that you need the below

SELECT LEN(EmployeeName)-LEN(REPLACE(EMployeeName,'s','')) AS Coourance FROm Table
Go to Top of Page
   

- Advertisement -