1

I would like query like

SELECT 'FOO1', 'FOO2'

But returns the resultset into rows instead of columns

Drahcir
  • 12,311
  • 19
  • 63
  • 76

2 Answers2

7
SELECT 'FOO1' as foo
UNION ALL
SELECT 'FOO2' as foo
Mitch Wheat
  • 295,962
  • 43
  • 465
  • 541
0

SQL Server: Examples of PIVOTing String data

Community
  • 1
  • 1
jimjim
  • 2,414
  • 2
  • 26
  • 46