0

How to convert rows to column in SQL Server 2008 using table valued function?

Example:

Name: Danish; Sex: Male 

convert to Male as column heading and Danish as field data.

Thanks, Danish

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

1 Answers1

0

Your question is really vague.

Converting rows to columns in sql server can be done with the PIVOT function. Look at the documentation on MSDN, and maybe this stackoverflow question for examples.

I fail to see what this has to do with table-valued functions

Community
  • 1
  • 1
jeroenh
  • 26,362
  • 10
  • 73
  • 104