troubleshooting Question

SQL CASE STATEMENT

Avatar of ac_davis2002
ac_davis2002Flag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft SQL ServerMicrosoft SQL Server 2005
7 Comments2 Solutions330 ViewsLast Modified:
Hi

I have a table that holds questions and  answers...for example

question
do you drive
do you walk
do you cycle

answers (can be one of the following for each question)
no
sometimes
allways

i want to use a case statment to say when the question is
do you drive and the answer is sometimes give me the value of 'occational driver'

otherwise give me the actual database value answer.

if the questions are
do you walk
do you cycle
give me the actual database value answer.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros