Skip to content

Commit

Permalink
Merge pull request #83 from TeoMeWhy/feat/dota
Browse files Browse the repository at this point in the history
Fix: window function with descending order
  • Loading branch information
TeoCalvo authored Aug 24, 2023
2 parents fc2f2a4 + 70b9512 commit 3e478ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/03.silver/dota/etl/team_last_seen.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ SELECT idTeam,

FROM silver.dota.matches_teams

QUALIFY ROW_NUMBER() OVER (PARTITION BY descTeamName ORDER BY dtMatch) = 1
QUALIFY ROW_NUMBER() OVER (PARTITION BY descTeamName ORDER BY dtMatch DESC) = 1

0 comments on commit 3e478ba

Please sign in to comment.