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

select substr(mail_id,1,instr(mail_id,'@')-1) from
test_rk_mail

Regards,

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of foreign key?

522


Difference between table function and pipelined function?

579


write an sql query to find names of employee start with 'a'? : Sql dba

573


Are pl sql variables case sensitive?

590


How do I upgrade sql?

541






Explain ttitle and btitle.

667


What does the sign mean in sql?

499


What if we write return in procedure?

784


how many values can the set function of mysql take? : Sql dba

528


What are the limitations of sql express?

520


What is record data type?

508


Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

638


What do you understand by exception handling in pl/sql?

569


What is an intersect?

643


What is cartesian join in sql?

553