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



select email_id,user_id,substr(email_id,instr
(email_id,'@'),length(email_id)) from mail_id;

i think its correct?

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of sql commands?

778


List the various privileges that a user can grant to another user?

768


Can we use ddl statements in stored procedure sql server?

711


tell us something about heap tables. : Sql dba

812


Does oracle roll back the transaction on an error?

737






How do I upgrade sql?

729


what is collation? : Sql dba

793


Can sql function call stored procedure?

728


When is a declare statement required?

861


Is sql an operating system?

717


What is the difference between explicit and implicit cursors in oracle?

687


What are predefined functions in sql?

705


What is a dynamic query?

754


How do you copy a table in sql?

745


Why should I use postgresql?

753