Back to Prql

From

web/book/src/reference/data/from.md

0.13.12649 B
Original Source

From

Specifies a data source.

prql
from artists

To introduce an alias, use an assign expression:

prql
from e = employees
select e.first_name

Table names containing spaces or special characters need to be contained within backticks:

prql
from `artist tracks`

default_db.tablename can be used if the table name matches a function from the standard library.

<!-- prettier-ignore -->

[!NOTE] We realize this is an awkward workaround. Track & 👍 #3271 for resolving this.

prql
default_db.group  # in place of `from group`
take 1