Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Regular Expressions Help

Started 1 month, 2 weeks ago by ssma
Hi all, I am new to oracle sql, so I am having a lil' bit of hard time to understand the regular expression part. I have a table that contains last name and email address and would like to select the emails that match the last the name, for example select smith if his email is smith@xy.com I wrote the following query but it doesn't seem to be working, I would greatly appreciate any help...
Site: CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions  CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions - site profile
Forum: Database  Database - forum profile
Total authors: 2 authors
Total thread posts: 3 posts
Thread activity: no new posts during last week
Domain info for: codeguru.com

Other posts in this thread:

jcaccia replied 1 month, 2 weeks ago
Code: SELECT lname FROM member WHERE REGEXP_LIKE(email, lname||'@.+') This selects all records where the email is the surname followed by '@' followed by any number of any characters (must have at least one).

ssma replied 1 month, 2 weeks ago
Thank you very much

 

Top contributing authors

Name
Posts
ssma
2
user's latest post:
Regular Expressions Help
Published (2009-11-11 22:22:00)
Thank you very much
jcaccia
1
user's latest post:
Regular Expressions Help
Published (2009-11-11 04:29:00)
Code: SELECT lname FROM member WHERE REGEXP_LIKE(email, lname||'@.+') This selects all records where the email is the surname followed by '@' followed by any number of any characters (must have at least one).

Related threads on "CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions":

Related threads on other sites:

Thread profile page for "Regular Expressions Help" on http://www.codeguru.com. This report page is a snippet summary view from a single thread "Regular Expressions Help", located on the Message Board at http://www.codeguru.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity