I have the following SQL statement
I would like to order the following statement by a column called player_position. Player position has four different options: goalie, forward, center, defense. I would like to have the player be ordered in the following order:
1. Forward
2. Defense
3. Goalie
4. Center
Any help would be greatly appreciated
Code:
CURSOR player_cursor IS
select *
from customer_data.cd_soccer_players p
where p.team_id = tID
and p.league_id = p_leagueID
and p.status = 'Y';
I would like to order the following statement by a column called player_position. Player position has four different options: goalie, forward, center, defense. I would like to have the player be ordered in the following order:
1. Forward
2. Defense
3. Goalie
4. Center
Any help would be greatly appreciated