Abaixo está uma instrução que descreve uma tarefa de geração de SQL, combinada com uma entrada que fornece mais contexto sobre os esquemas de tabela disponíveis. Escreva o código SQL que responda adequadamente à solicitação
 ###Instrução: Qual é o tempo total de jogo para cada jogador, pivoteado por dia da semana?
 ###Tabelas: 
CREATE TABLE PlayerGamePlay (PlayerID int, PlayerName varchar(50), Day varchar(15), Playtime int); INSERT INTO PlayerGamePlay (PlayerID, PlayerName, Day, Playtime) VALUES (1, 'Player1', 'Monday', 120), (2, 'Player2', 'Tuesday', 150), (3, 'Player3', 'Wednesday', 180), (4, 'Player4', 'Thursday', 100), (5, 'Player5', 'Friday', 160), (6, 'Player1', 'Saturday', 200), (7, 'Player2', 'Sunday', 140);
SELECT PlayerName, SUM(Monday) as MondayPlaytime, SUM(Tuesday) as TuesdayPlaytime, SUM(Wednesday) as WednesdayPlaytime, SUM(Thursday) as ThursdayPlaytime, SUM(Friday) as FridayPlaytime, SUM(Saturday) as SaturdayPlaytime, SUM(Sunday) as SundayPlaytime FROM (SELECT PlayerName, CASE Day WHEN 'Monday' THEN Playtime ELSE 0 END as Monday, CASE Day WHEN 'Tuesday' THEN Playtime ELSE 0 END as Tuesday, CASE Day WHEN 'Wednesday' THEN Playtime ELSE 0 END as Wednesday, CASE Day WHEN 'Thursday' THEN Playtime ELSE 0 END as Thursday, CASE Day WHEN 'Friday' THEN Playtime ELSE 0 END as Friday, CASE Day WHEN 'Saturday' THEN Playtime ELSE 0 END as Saturday, CASE Day WHEN 'Sunday' THEN Playtime ELSE 0 END as Sunday FROM PlayerGamePlay) as PivotTable GROUP BY PlayerName;