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 / amitabha mandal

select substr(mail_id,instr(email_id,'@'),(length
(email_id,'@') - instr(email_id,'@'))+1) from table_name.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

556


What are two statement types in sql?

533


What is a field in a database?

566


What is the need of a partition key?

530


How to display Row Number with Records in Oracle SQL Plus?

585






How to execute a stored procedure?

557


What is natural join in sql?

530


Is sqlite good enough for production?

527


How would you convert date into julian date format?

587


How do I copy a table in sql?

515


which command using query analyzer will give you the version of sql server and operating system? : Sql dba

517


What is nosql example?

579


Why is pl sql needed?

503


What is cursor and its types?

550


what does the t-sql command ident_current does? : Transact sql

535