Oracle SOUNDEX Function


/ Published in: SQL
Save to your folder(s)

A few examples of the SOUNDEX function.


Copy this code and paste it in your HTML
  1. --SOUNDEX
  2.  
  3. --Example 1
  4. SELECT SOUNDEX('Complete') AS testval
  5. FROM dual;
  6.  
  7. --Example 2
  8. SELECT SOUNDEX('complete') AS testval
  9. FROM dual;
  10.  
  11.  
  12. --Example 3
  13. SELECT SOUNDEX('Canne'),
  14. SOUNDEX('Can')
  15. FROM dual;
  16.  
  17.  
  18. --Example 4
  19. SELECT first_name, last_name
  20. FROM student
  21. WHERE SOUNDEX(last_name) = SOUNDEX('Smyth');

URL: http://www.databasestar.com/oracle-soundex/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.