troubleshooting Question

Change data layout

Avatar of BeginningWebDesign
BeginningWebDesign asked on
Microsoft SQL Server 2005Microsoft SQL Server 2008
6 Comments1 Solution250 ViewsLast Modified:
Hi
Can anyone modify the code below, so that it returns the following:

PollQuestionText returned once

PollYesText  PollYesValue
PollNoText PollNoValue

Current Output
Are you a good programmer | Yes | 0 | No | 1

Output would be:
Are you a good programmer
Yes 0
No   1

I need it to display in a radiobuttonlist that has 2 option
George
SELECT PollQuestionText AS PollQuestionText,
		   PollYesText AS PollYesText,
		   PollYesValue AS PollYesValue,
		   PollNoText AS PollNoText,
		   PollNoValue AS PollNoValue
	FROM dbo.Website_Polls
ASKER CERTIFIED SOLUTION
Emes
Data archithect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
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 1 Answer and 6 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