This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| artists, | |
| name, | |
| danceability, | |
| FIRST_VALUE (name) OVER (PARTITION BY artists ORDER BY danceability) AS first_danceability | |
| FROM `spotify-sample1`.spotify | |
| ORDER BY artists, danceability |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FIRST_VALUE | LAST_VALUE | |
| ( expression [ IGNORE NULLS | RESPECT NULLS ] ) OVER | |
| ( | |
| [ PARTITION BY expr_list ] | |
| [ ORDER BY order_list frame_clause ] | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"version":1,"resource":"file:///Users/ericabertan/dev/hoppers/client-web/generators/plopfile.js","entries":[{"id":"GBY3.js","timestamp":1697229058356},{"id":"Ha5u.js","timestamp":1699743458970},{"id":"V6rc.js","source":"undoRedo.source","timestamp":1699743468118}]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT COALESCE(NULL, NULL, 1, NULL); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| artists, | |
| name, | |
| danceability, | |
| ROW_NUMBER() OVER (PARTITION BY artists ORDER BY danceability DESC) AS number | |
| FROM spotify | |
| GROUP BY artists, name, danceability |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ROW_NUMBER() OVER ( | |
| [PARTITION BY expr1, expr2,...] | |
| ORDER BY expr1 [ASC | DESC], expr2,... | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| book_name, | |
| author, | |
| GREATEST(MAX(updated_at), MAX(created_at), MAX(dropout_at)) AS last_update | |
| FROM "public"."products" | |
| GROUP BY | |
| book_name, | |
| author |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT GREATEST(1, 5, 3, 4, -1), LEAST(1, 5, 3, 4, -1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| id, | |
| name, | |
| danceability, | |
| energy, | |
| GREATEST(danceability, energy) AS greatest, | |
| LEAST(danceability, energy) AS least | |
| FROM "public"."featuresdf" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source ~/.zshrc |