Skip to content

Commit

Permalink
Railway blog post: Unify URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
szarnyasg committed Jun 9, 2024
1 parent 326373a commit 55ab859
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Some of the queries explained in this blog post are shown in simplified form on
## Loading the Data

For our initial queries, we'll use the 2023 [railway services dataset](https://www.rijdendetreinen.nl/en/open-data/train-archive).
To get this dataset, download the [`services-2023.csv.gz` file](https://blobs.duckdb.org/data/nl-railway/services-2023.csv.gz) (330 MB) and load it into DuckDB.
To get this dataset, download the [`services-2023.csv.gz` file](https://blobs.duckdb.org/nl-railway/services-2023.csv.gz) (330 MB) and load it into DuckDB.

First, start the [DuckDB command line client](/docs/api/cli/overview) on a persistent database:

Expand Down Expand Up @@ -161,7 +161,7 @@ For example, we can run the following query:

```sql
SELECT "Service:Date", "Stop:station name"
FROM 'https://blobs.duckdb.org/data/services-2023.parquet'
FROM 'https://blobs.duckdb.org/nl-railway/services-2023.parquet'
LIMIT 3;
```

Expand All @@ -183,7 +183,7 @@ WITH services_per_month AS (
month("Service:Date") AS month,
"Stop:station name" AS station,
count(*) AS num_services
FROM 'https://blobs.duckdb.org/data/services-2023.parquet'
FROM 'https://blobs.duckdb.org/nl-railway/services-2023.parquet'
GROUP BY ALL
)
SELECT month, month_name, array_agg(station) AS top3_stations
Expand Down

0 comments on commit 55ab859

Please sign in to comment.