where:
•
battle_id : the unique battle identifier which is common for all participants in one battle;
•
battle_start : the exact time when a battle started;
•
player_id : the unique identifier of a player;
•
team_id : the identifier of a team in which a player was distributed in a battle. There are two teams
in a battle;
•
tank_id : the unique identifier of a vehicle in which the player entered the battle;
•
damage : the amount of damage done to the enemies by the player in a battle;
•
credits : the number of credits received by the player in a battle;
•
exp : the amount of experience received by the player in a battle;
•
team_won_id : the unique identifier of the team who won a battle.
dev_player_id |
1660434033 |
1660434378 |
... |
Using the tables above, please write an SQL script to gather following metrics for each player the following:
• the amount of damage done to the enemies and earned credits in the last player’s won battle
excluding developers;
• date and time of the first lost player’s battle excluding developers;