Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with SQL concatenation Query 5

Status
Not open for further replies.

dibblm

Programmer
Aug 11, 2003
15
0
0
US

select cfname + ' ' + (isnull(cmi , ' cmi ')) + '. ' + clname as expr1

This works and solves my null value issue I started with however I get periods on records that have no mi.

I would like to delete the fact of inserting a period if there is no MI.
example:

John A. Doe
Mary B.
Jane Doe (with no period for no MI)
 
I've never actually used the SQL CASE statement before - I'll give it a go. Star to you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top