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
How do I install sql?
What is a sql statement?
How do you write a subquery?
Explain what is table in a database?
what is the difference between a web-garden and a web-farm? : Sql dba
How to create your own reports in sql developer?
What is sql partition function?
How do you optimize a query?
What is a .db file?
what are local and global variables and their differences? : Sql dba
What is foreign key sql?
Enlist the advantages of sql.
What is where clause in sql?
What is the best free sql database?
explain what is mysql? : Sql dba