I am attempting to give a column an alias based on results for my game's ranking board. I am struggling to figure out where I should incorporate the line below into my query.
The desired result would be to have the G.Jobcode result rename itself to "Warrior" "Archer" "Mage" depending on the number result.
Select G.Jobcode as WARRIOR where G.Jobcode = 1;
USE DNWORLD
SELECT TOP 25 G.CharacterName, G.JobCode, G.PvPExp, D.PVPWin, D.PVPLose, D.PVPGiveUp
FROM PvPRanking as G
INNER JOIN PVPScores as D
ON G.CharacterID = D.CharacterID
ORDER BY RANK() OVER (ORDER BY TotalRank ASC )