Leetcode力扣 MySQL数据库 534:游戏玩法分析III

534:游戏玩法分析III


SQL架构

Create table If Not Exists Activity_534 (player_id int, device_id int, event_date date, games_played int);
 Truncate table Activity_534;
 insert into Activity_534 (player_id, device_id, event_date, games_played) values ('1', '2', '2016-03-01', '5');
 insert into Activity_534 (player_id, device_id, event_date, games_played) values ('1', '2', '2016-05-02', '6');
 insert into Activity_534 (player_id, device_id, event_date, games_played) values ('1', '3', '2017-06-25', '1');
 insert into Activity_534 (player_id, device_id, event_date, games_played) values ('3', '1', '2016-03-02', '0');
 insert into Activity_534 (player_id, device_id, event_date, games_played) values ('3', '4', '2018-07-03', '5');


 Table: Activity
 +------

你可能感兴趣的:(Leetcode,数据库,sql,java)