--drop table if exists logins; /* Drop with caution */
create table logins (
user_id INT ,
login_date DATE ,
login VARCHAR (50 )
);
insert into logins (user_id, login_date, login) values (3 , '8/12/2022' , 'success' );
insert into logins (user_id, login_date, login) values (4 , '8/26/2022' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '7/17/2022' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '11/2/2022' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '6/7/2023' , 'success' );
insert into logins (user_id, login_date, login) values (1 , '5/7/2023' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '4/28/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '4/26/2023' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '2/5/2023' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '12/22/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (1 , '4/22/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '6/29/2023' , 'success' );
insert into logins (user_id, login_date, login) values (3 , '4/19/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '4/6/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '4/16/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (2 , '5/22/2023' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '3/10/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '6/23/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '1/18/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (2 , '4/27/2023' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '11/6/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '11/18/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (2 , '9/17/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (2 , '11/14/2022' , 'success' );
insert into logins (user_id, login_date, login) values (3 , '7/23/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (1 , '9/13/2022' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '7/3/2022' , 'success' );
insert into logins (user_id, login_date, login) values (1 , '12/9/2022' , 'success' );
insert into logins (user_id, login_date, login) values (4 , '4/3/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '10/11/2022' , 'success' );
insert into logins (user_id, login_date, login) values (4 , '3/16/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '1/10/2023' , 'success' );
insert into logins (user_id, login_date, login) values (3 , '12/3/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '7/2/2022' , 'success' );
insert into logins (user_id, login_date, login) values (1 , '10/11/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (1 , '2/24/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '9/11/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '4/11/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '6/3/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (2 , '1/30/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '10/21/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (1 , '7/9/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (1 , '8/12/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (1 , '5/30/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '8/11/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (2 , '10/22/2022' , 'success' );
insert into logins (user_id, login_date, login) values (3 , '1/6/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (1 , '11/10/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (2 , '4/2/2023' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '7/17/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (2 , '8/6/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '1/11/2023' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '2/20/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (2 , '1/9/2023' , 'success' );
insert into logins (user_id, login_date, login) values (3 , '1/3/2023' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '4/17/2023' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '3/7/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '6/26/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '6/30/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '2/1/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '3/26/2023' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '11/13/2022' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '8/11/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '1/30/2023' , 'success' );
insert into logins (user_id, login_date, login) values (3 , '12/2/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '9/27/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (1 , '10/26/2022' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '2/23/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '12/25/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (1 , '8/22/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '5/27/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '8/17/2022' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '10/2/2022' , 'success' );
insert into logins (user_id, login_date, login) values (1 , '7/15/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '2/6/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '6/5/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (1 , '8/15/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '8/3/2022' , 'success' );
insert into logins (user_id, login_date, login) values (4 , '12/17/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '9/11/2022' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '7/6/2022' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '1/14/2023' , 'success' );
insert into logins (user_id, login_date, login) values (1 , '11/4/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '11/18/2022' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '12/17/2022' , 'success' );
insert into logins (user_id, login_date, login) values (4 , '5/2/2023' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '8/14/2022' , 'success' );
insert into logins (user_id, login_date, login) values (1 , '7/20/2022' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '10/27/2022' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '2/24/2023' , 'success' );
insert into logins (user_id, login_date, login) values (5 , '9/17/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '10/5/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (5 , '1/12/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '4/30/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '6/14/2023' , 'success' );
insert into logins (user_id, login_date, login) values (2 , '10/5/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (3 , '7/24/2022' , 'fail' );
insert into logins (user_id, login_date, login) values (4 , '6/3/2023' , 'fail' );
insert into logins (user_id, login_date, login) values (2 , '11/27/2022' , 'success' );
insert into logins (user_id, login_date, login) values (1 , '3/15/2023' , 'success' );