Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Help with a query using ISNULL and RTRIM in the same select statement

$
0
0

What I'm trying to accomplish is to blend the following two statements together:

ISNULL (EMail_Address, '') As Matrix_Member_Email

 AND

RTRIM (EMail_Address) as Matrix_Member_EMail

So that if the email address is NULL, it gets changed to blank and I still need to RTRIM the other entries and use the column header of Matrix_Member_Email.

I've tried:

ISNULL ((EMail_Address, '') (RTRIM (EMail_Address)) as Matrix_Member_EMail

Any help would be greatly appreciated.

Thank you,


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>