I am not sure what exactly u r looking for
SELECT ( Field_1 + ' ' ISNULL (Field_2, ' ') + ' ' + ISNULL(Field_3, ' ') ) as FIELDS_1_2_3
FROM urTable
should work
Main Topics
Browse All Topicshi there,
I have create i field that is compose by three differents fields but when it runs i have some NULL valkues which is ok. What i want to do is when those values ocurr then get some other field and place instead of the NULL value.
for instance i have this Concatenate field:
SELECT
...
Field_1 + ' ' ISNULL (Field_2, ' ') + ' ' + ISNULL(Field_3, ' ') as FIELDS_1_2_3
From
...
and if i want to do this if can be done what would be the approach?
...
Field_1 + ' ' ISNULL (Field_2, ' ') + ' ' + ISNULL(Field_3, ' ') as FIELDS_1_2_3,
ISNULL(FIELDS_1_2_3, Field_5) as UPDATE_FIELD
...
if i tun this the way it is then i would got an error saying that invalid column name FIELDS_1_2_3
is there a way to do what i'm trying to achiev here?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: cognos79Posted on 2007-01-31 at 07:18:46ID: 18436419
enclose fields_1_2_3 inside brackets:
Field_1 + ' ' + ISNULL (Field_2, ' ') + ' ' + ISNULL(Field_3, ' ') as [FIELDS_1_2_3],
ISNULL(FIELDS_1_2_3, Field_5) as UPDATE_FIELD