TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ayesha Fathima
NA
184
29.8k
Retrieve email id from full email
Apr 22 2020 3:37 AM
Hi there,
I need to take email id from full email address.
Example
Input
"ABCD"<
[email protected]
>;"TEST" <
[email protected]
>;
Needed output
[email protected]
,
[email protected]
i have tried the below query but it is giving only one email id not all.Some help will be greatly appreciated.
SELECT
CASE
WHEN
to_address
LIKE
'%<%'
THEN
SUBSTRING
(to_address,CHARINDEX(
'<'
,to_address)+1,CHARINDEX(
'>'
,to_address)-CHARINDEX(
'<'
,to_address)-1)
ELSE
to_address
END
AS
ToAddress
from
test
Reply
Answers (
1
)
Datagridview problem when form load
Update table with values from another table