Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Game_Play_Analysis I.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select player_id,min(event_date) as first_login from activity group by player_id;
5 changes: 5 additions & 0 deletions Report_Contiguos_Dates.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
WITH CTE AS (
SELECT 'failed' as period_state, fail_date as dat, rank() over(order by fail_date) as rnk from failed where year(fail_date) = 2019
union all
SELECT 'succeeded' as period_state, success_date as dat, rank() over(order by success_date) as rnk from succeeded where year(success_date) = 2019
) select period_state, min(dat) as start_date, max(dat) as end_date from (select *, rank() over(order by dat)-rnk as grp_rnk from cte) a group by grp_rnk,period_state order by start_date;
5 changes: 5 additions & 0 deletions Students_Reported_By_Geography.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
select America, Asia, Europe from(
(SELECT @am := 1 , @as := 1, @eu := 1)t1,
(SELEcT @as := @as + 1 as asrnk, name as 'Asia' from Student where continent = 'Asia' order by name)t2 right join
(SELECT @am := @am + 1 as amrnk, name as 'America' from Student where continent = 'America' order by name)t3 on t2.asrnk = t3.amrnk left join
(SELECT @eu := @eu + 1 as eurnk, name as 'Europe' from Student where continent = 'Europe' order by name)t4 on t3.amrnk = t4.eurnk)
Empty file added average_sal_company.txt
Empty file.