Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(book): Small edits #4905

Merged
merged 2 commits into from
Sep 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions web/book/src/tutorial/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ those columns named in the tuple.

### `derive` transform

To add columns to a relation, we can use `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
Expand Down Expand Up @@ -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)
Expand Down
Loading