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?

SRK
  • 70
  • 9
  • possible duplicate of [Unpivot with column name](http://stackoverflow.com/questions/19055902/unpivot-with-column-name) – Konstantin V. Salikhov Jul 02 '14 at 06:16
  • @KonstantinV.Salikhov It's a remote database and PIVOT and UNPIVOT requires the compatibility level of the database to be changed. – SRK Jul 02 '14 at 06:31

1 Answers1

2

Try:

select PM Members From tbl
union all
select SPM From tbl
union all
select QA From tbl
TechDo
  • 18,398
  • 3
  • 51
  • 64