DataBase Dave
Showing posts with label
Substring
.
Show all posts
Showing posts with label
Substring
.
Show all posts
Wednesday, 5 February 2014
Fining all before a set char
Ever needed to find only the part of a fild before a set char. Say just the name from an emails address? :-
SUBSTRING
(
Email
,
0
,
CHARINDEX
(
'.'
,
Email
))
as
Name
Older Posts
Home
Subscribe to:
Posts (Atom)