1

I would like query like

SELECT 'FOO1', 'FOO2'

But returns the resultset into rows instead of columns

Drahcir
  • 11,771
  • 18
  • 62
  • 76

2 Answers2

7
SELECT 'FOO1' as foo
UNION ALL
SELECT 'FOO2' as foo
Mitch Wheat
  • 288,400
  • 42
  • 452
  • 532
0

SQL Server: Examples of PIVOTing String data

Community
  • 1
  • 1
jimjim
  • 2,284
  • 2
  • 23
  • 43