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 / raji_4u

select substr(mail_id,instr(mail_id,'@',1)) from table_name

This works fine.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of sqldataadapter?

700


Can we update views in sql?

684


How do you explain an index?

983


What is the example of procedure?

674


How do you exit in sql?

815






What is the difference between function, procedure and package in pl/sql?

760


what is collation? : Sql dba

795


Why plvtab is considered as the easiest way to access the pl/sql table?

826


What types of commands can be executed in sql*plus?

760


Can we use having without group by in sql?

732


What are the benefits of stored procedures?

705


What is cte sql?

712


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

725


What is fmtonly in sql?

720


What is a boolean in sql?

702