Created
January 17, 2018 03:02
-
-
Save tawman/4fb482eeefe3d91c2616c3e1ae5abbdf to your computer and use it in GitHub Desktop.
A Simple SQL PIVOT Query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM(SELECT * FROM UserRequirement) AS UserInfo | |
PIVOT (MIN(ExpirationDate) | |
FOR Requirement IN ([Alpha], [Bravo], [Charlie], [Delta], [Echo]) | |
) AS UserPivot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment