mail-id table contains two columns(email_id,userid)
it contains different types of mail-ids,and no of users.
here username length is differ na,(ex-
tamil@yahoo.com,joshua@hotmail.com like)
now i want to fetch the email-ids only starting from '@'
(ex-@gmail.com,@yahoo.com,@hotmail.com

Answer Posted / rk

select substr(mail_id,1,instr(mail_id,'@')-1) from
test_rk_mail

Regards,

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of sql?

770


What are database links used for?

745


What is cost in sql execution plan?

675


how to escape special characters in sql statements? : Sql dba

705


What pl/sql package consists of?

831






Give the order of sql select?

821


I need a function for a train ticket reservation please answer it thanks in advance

756


How do you delete duplicates in sql query using rowid?

714


Why are sql stored procedures used?

791


What is a parameter query?

814


How do I delete a trigger?

721


What found sql?

695


How to check if a column is nullable before setting to nullable?

764


What is the difference between in and between in sql?

766


how do you login to mysql using unix shell? : Sql dba

736