Write a SQL query using window functions to rank players within each team by points per game and calculate their percentile within the team.
Use the provided player, team, and player statistics data. Report only players with a non-NULL points per game value.
Output
- One row per qualifying player, with
team_name, player_name, points_per_game, team_rank, and percentile_within_team.
- Percentile should be expressed from 0 to 100 and rounded to two decimal places.
- Order by team name, rank, and player name. Rows with NULL points per game are ignored.