In SQL Server, what is the purpose of the UNPIVOT operator?
A. Combine rows from two or more tables
B. Rotate columns into rows based on values in a specified column
C. Sort the result set
D. Join multiple tables
The UNPIVOT operator is used to rotate columns into rows based on values in a specified column in SQL Server.