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
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 vowel eater

Author  Topic 

rssrk
Starting Member

9 Posts

Posted - 2013-09-16 : 02:09:39
can u help me to create a code in which it removes down vowel from it ??
for example in string "chakit" the i word should be removed as it is vowel and the result should be only "chakt"
thank you

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2013-09-16 : 03:28:14
In our part of the world the letter "a" is also a vowel.



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page

rssrk
Starting Member

9 Posts

Posted - 2013-09-16 : 03:36:36
ok but where is the code
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2013-09-16 : 04:44:57
quote:
Originally posted by rssrk

ok but where is the code


I believe your short answer is more a language barrier than unkindness...

read here for your problem:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/526fcdd1-aeeb-44b5-af6e-c24aab6c5e7d/replacing-vowels


Too old to Rock'n'Roll too young to die.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2013-09-16 : 06:48:56
DECLARE @Sample VARHAR(100) = 'Chakit';

SELECT REPLACE(REPLACE(@Sample, 'i', ''), 'o', '') AS CleanedWord



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2013-09-16 : 06:56:03
quote:
Originally posted by SwePeso

DECLARE @Sample VARCHAR(100) = 'Chakit';

SELECT REPLACE(REPLACE(@Sample, 'i', ''), 'a', '') AS CleanedWord



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA




Too old to Rock'n'Roll too young to die.
Go to Top of Page
   

- Advertisement -