0

I've a result set in SQL Server as follows:

PM    SPM   QA
714   NULL  NULL

I want to get a Result Set as follows:

Members
714 
NULL    
NULL

How to do This?

2
  • possible duplicate of Unpivot with column name Commented Jul 2, 2014 at 6:16
  • @KonstantinV.Salikhov It's a remote database and PIVOT and UNPIVOT requires the compatibility level of the database to be changed. Commented Jul 2, 2014 at 6:31

1 Answer 1

2

Try:

select PM Members From tbl
union all
select SPM From tbl
union all
select QA From tbl
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.