convert multiple columns to rows in sql server

Solutions on MaxInterview for convert multiple columns to rows in sql server by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "convert multiple columns to rows in sql server"
Sara
07 Sep 2017
1select *
2  from yourTable
3  unpivot (
4    Value
5    for NewCol in (Value1, Value2, Value3,Value4, Value5)
6  ) up
7