Afficher un message
Vieux 17/09/2007, 12h32   #1
Yas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut MS SQL compare columns to generate display name

Hello, I have the following table with 4 columns....

firstname, lastname1, lastname2, EMAIL

Table has user names and email, I would like to generate a 5th column
called DisplayName.
The email Id is sometimes firstname.lastname1.lastname2@ and others
just firstname.lastname1@

I would like to generate the display name exactly like the email eg
firstname.lastname1.lastname2@ displayName = firstname lastname1
lastname2......so for james.smith display name = James Smith and for
james.earl.smith displayName = James Earl Smith etc etc

Is there a way that I can check/compare email Id (before the @ part)
with firstname, lastname1 and lastname2 and generate a display name
based on what was used for the email address?

I hope I've explained this well :-)


Many thanks in advance for any /advise


Yas

  Réponse avec citation
 
Page generated in 0,05634 seconds with 9 queries