Hi All,
i have requirement like to Convert rows to columns in SQL server.
i have retrieved data like below:
MatchId SelectionName Odds
322 Home Win 1.33
322 Draw 5.00
322 Away Win 9.00
322 Under 2.5 2.40
322 Over 2.5 1.53
and want to convert like below:
MatchId Home Win Draw Away Win Under 2.5 Over 2.5
322 1.33 5.00 9.00 2.40 1.53
how can i do this?
Thanks,
KK