eczachly / video-game-training-sql Goto Github PK
View Code? Open in Web Editor NEWHey this is the repo that has all the queries and data for my video game training series!
Hey this is the repo that has all the queries and data for my video game training series!
Loved the SQL window session, definately learned some cool and useful stuff from that. Thanking you for sharing the updated SQL so I can have a further deep dive play to ensure eunderstanding.
I know you shared the PSQL data dump for the halo match dataset. Would it be possible to sahre as CSV or simialr, as I suppose this would be the easiest way to dump into my db of choice (Azure SQL).
Thanks!
Hi Zach, thanks much for making this tutorial. It was very useful to me!
However, I wanted to point out some strange behavior in the streak identification logic for your tutorial. I have attached a screenshot of the relevant columns obtained from the lengths table. The completion_date column does not seem to give any hour/minute/second granularity for matches completed on the same day. Therefore, the window function (in the grouped table) that is ORDERED BY completion_date would return the same result for each row in every distinct player_gamertag/playlist group that happens to take place on the same day. You can see in the attached screenshot how the downstream logic in subsequent CTEs indicates a streak of 17 for this player even though he/she had actual breaks in their streak on the given day.
Hey Zach just watched your most recent video and noticed an issue with how you identify streaks. The window function in the streak_identified CTE calculates only the total count of times the player's streak changed in the playlist, rather than assigning a unique identifier to each streak. For example the player "My Regret" has a streak_identifier that seems to stay the same across several different win/loss streaks.
I think you can add a window frame rows between unbounded preceding and current row
to your window here and get the desired behavior, where different streaks have their own unique streak_identifier (unique to the player/playlist).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.