From 9e60aa504800c3885af37374ac724a2875a027c5 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sat, 14 Sep 2024 14:59:26 +0200 Subject: [PATCH 1/2] fix(book): Small edits --- web/book/src/tutorial/relations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/book/src/tutorial/relations.md b/web/book/src/tutorial/relations.md index f18fd0a93f3e..f7f9f706bcf0 100644 --- a/web/book/src/tutorial/relations.md +++ b/web/book/src/tutorial/relations.md @@ -77,7 +77,7 @@ those columns named in the tuple. ### `derive` transform -To add columns to a relation, we can use `derive` function. Let's define a new +To add columns to a relation, we can use the `derive` function. Let's define a new column for Value Added Tax, set at 19% of the invoice total. ```prql no-eval @@ -123,7 +123,7 @@ In the example above, the alias `inv` represents the `invoices` relation and PRQL manipulates relations (tables) of data. The `derive`, `select`, and `join` transforms change the number of columns in a table. The first two never affect the number of rows in a table. `join` may change the number of rows, depending -on the variation chosen. +on the chosen type of join. This final example combines the above into a single query. It illustrates _a pipeline_ - the fundamental basis of PRQL. We simply add new lines (transforms) From c69c620d47285d5508791f51a6b0e70f994ce127 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 14 Sep 2024 12:59:45 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- web/book/src/tutorial/relations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/book/src/tutorial/relations.md b/web/book/src/tutorial/relations.md index f7f9f706bcf0..5927838f681a 100644 --- a/web/book/src/tutorial/relations.md +++ b/web/book/src/tutorial/relations.md @@ -77,8 +77,8 @@ those columns named in the tuple. ### `derive` transform -To add columns to a relation, we can use the `derive` function. Let's define a new -column for Value Added Tax, set at 19% of the invoice total. +To add columns to a relation, we can use the `derive` function. Let's define a +new column for Value Added Tax, set at 19% of the invoice total. ```prql no-eval from invoices