{"id":25326385,"url":"https://github.com/codingcompetitions/aosql-2024","last_synced_at":"2025-06-21T07:35:10.055Z","repository":{"id":268804296,"uuid":"905512363","full_name":"codingcompetitions/AoSQL-2024","owner":"codingcompetitions","description":"**UNOFFICIAL REPOSITORY** Advent of SQL","archived":false,"fork":false,"pushed_at":"2025-03-31T02:30:33.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-08T00:47:55.287Z","etag":null,"topics":["advent-of-sql","advent-of-sql-2024","postgresql"],"latest_commit_sha":null,"homepage":"https://adventofsql.com/","language":"PLpgSQL","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codingcompetitions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-19T01:33:16.000Z","updated_at":"2024-12-26T21:27:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b8f567a-32c4-4910-a0ab-eda8fbb9106c","html_url":"https://github.com/codingcompetitions/AoSQL-2024","commit_stats":null,"previous_names":["codingcompetitions/aosql-2024"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codingcompetitions/AoSQL-2024","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingcompetitions%2FAoSQL-2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingcompetitions%2FAoSQL-2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingcompetitions%2FAoSQL-2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingcompetitions%2FAoSQL-2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingcompetitions","download_url":"https://codeload.github.com/codingcompetitions/AoSQL-2024/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingcompetitions%2FAoSQL-2024/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261085239,"owners_count":23107488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-sql","advent-of-sql-2024","postgresql"],"created_at":"2025-02-14T01:42:51.559Z","updated_at":"2025-06-21T07:35:05.038Z","avatar_url":"https://github.com/codingcompetitions.png","language":"PLpgSQL","readme":"# Advent of SQL 2024\n\n[★ Advent of SQL 2024](https://adventofsql.com/) is solved using [PostgreSQL](https://www.postgresql.org/).\n\n| Star |                          Day                          |    Level     |                     Topics                    |\n|------|-------------------------------------------------------|--------------|-----------------------------------------------|\n| ⭐    | Day 01 - Santa's Gift List Parser                     | Beginner     | json, case, joins                             |\n| ⭐    | Day 02 - Santa's jumbled letters                      | Beginner     | union, cte, ascii, array_agg                  |\n|      | Day 03 - The greatest Christmas dinner ever!          | Intermediate |                                               |\n| ⭐    | Day 04 - The Great Toy Tag Migration of 2024          | Beginner     | arrays, set operations                        |\n| ⭐    | Day 05 - Santa's production dashboard                 | Beginner     | lag, round, window functions                  |\n| ⭐    | Day 06 - Making presents fairer                       | Beginner     | subquery, aggregates                          |\n| ⭐    | Day 07 - Santa's Cartesian Elf Skill-Matching Program | Intermediate | cte, window functions                         |\n|      | Day 08 -                                              |              |                                               |\n| ⭐    | Day 09 - Reindeer Training Records                    | Intermediate | cte, aggregate functions                      |\n| ⭐    | Day 10 - The Christmas party drinking list            | Intermediate | pivot, cte                                    |\n| ⭐    | Day 11 - The Christmas tree famine                    | Intermediate | Average over, window functions                |\n| ⭐    | Day 12 - The Great Gift Ranking                       | Intermediate | percentile, window functions                  |\n| ⭐    | Day 13 - Santas Christmas card list                   | Intermediate | window functions, temporary tables, Array agg |\n| ⭐    | Day 14 - Where is Santa's green suit?                 | Intermediate | array functions, json functions               |\n| ⭐    | Day 15 - Santa is missing!                            | Advanced     | Geometry                                      |\n|      | Day 16 - Santa's Delivery Time Analysis               | Advanced     | LAG, Geometry, Lead, CTE                      |\n| ⭐    | Day 17 - Christmas time zone madness                  | Intermediate | cte, timezone                                 |\n\n\n## Init\n\n```sql\n--- how to create a password\n-- echo -n pass+user | md5sum\n--- echo -n asdfg1234advent_of_sql | md5sum\n--- asdfg1234 + advent_of_sql i.e. asdfg1234advent_of_sql\n--- asdfg1234 is the password\n--- advent_of_sql is the user\n--- prefix with md5 i.e. md5$hash$\n\n\nDROP DATABASE IF EXISTS advent_of_sql;\n\nDROP ROLE IF EXISTS advent_of_sql;\n\nCREATE ROLE advent_of_sql WITH\n  LOGIN\n  NOSUPERUSER\n  NOINHERIT\n  CREATEDB\n  NOCREATEROLE\n  NOREPLICATION\n  PASSWORD 'md52414c1e35431797cd193111ed64eb67b'\n  VALID UNTIL 'infinity';\n\nCREATE DATABASE advent_of_sql WITH\n  OWNER = advent_of_sql\n  ENCODING = 'UTF8'  \n  TABLESPACE = pg_default\n  CONNECTION LIMIT = -1;\n```\n\n```sh\necho \"127.0.0.1:5432:*:advent_of_sql:advent_of_sql\" \u003e\u003e ~/.pgpass\n\n# may overwrite you config file\n# cp .psqlrc ~/.psqlrc\n```\n\n## License\n\nMIT License.\n\nCopyright (c) 2024 Manuel Alejandro Gómez Nicasio \u003caz-dev@outlook.com\u003e\n\nSee [LICENSE.md](LICENSE.md) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingcompetitions%2Faosql-2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingcompetitions%2Faosql-2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingcompetitions%2Faosql-2024/lists"}