Use of SOUNDEX() Function in Oracle

No.of Views1530
Bookmarked0 times
Downloads 
Votes0
By  youngmurukan   On  15 Feb 2010 21:02:15
Tag : Oracle , PL/SQL
Use of SOUNDEX() Function in Oracle
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

In oracle there are more functions to use in queries. here i thought to discuss about SOUNDEX(x) function.

You use SOUNDEX(x) to get a string containing the phonetic representation of x. This lets you
compare words that sound alike in English but are spelled differently.
The following query retrieves the last_name column from the customers table where
last_name sounds like “whyte”:
(Pronouncing in same way but spelling different )

SELECT last_name
FROM customers
WHERE SOUNDEX(last_name) = SOUNDEX('whyte');

LAST_NAME
----------
White

The next query gets last names that sound like “bloo”:
SELECT last_name
FROM customers
WHERE SOUNDEX(last_name) = SOUNDEX('bloo');

LAST_NAME
----------
Blue

I would post more oracle functios in future.

 
Sign Up to vote for this article
 
About Author
 
youngmurukan
Occupation-Not Provided
Company-Not Provided
Member Type-Senior
Location-Not Provided
Joined date-12 May 2009
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top