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

Why do we use subquery?

700


Explain the uses of a database trigger?

778


What does the argument [or replace] do?

805


Can I learn sql in a week?

752


what is 'mysqlimport'? : Sql dba

721






What are the two types of periodical indexes?

658


Is left join faster than inner join?

831


How can I get the number of records affected by a stored procedure?

762


How do I enable sql encryption?

713


What is the unique index?

724


Which command is used to call a stored procedure?

713


What is embedded sql with example?

753


How much does sql certification cost?

740


How to move files from one directory to another in pl sql?

854


What are the parts of a basic sql query?

719