Skip to content

Commit

Permalink
Update friendly_sql.md
Browse files Browse the repository at this point in the history
Just want to make it clear that the column alias cannot be used in the ON clause of the JOIN clauses. I didn't find any specific instructions in the documentation, so I'll add the description in this section.
  • Loading branch information
michaelpopes authored Nov 25, 2024
1 parent bb62d0f commit c9dfbf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sql/dialect/friendly_sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ DuckDB offers several advanced SQL features and syntactic sugar to make SQL quer

## Query Features

* [Column aliases in `WHERE`, `GROUP BY`, and `HAVING`]({% post_url 2022-05-04-friendlier-sql %}#column-aliases-in-where--group-by--having)
* [Column aliases in `WHERE`, `GROUP BY`, and `HAVING`]({% post_url 2022-05-04-friendlier-sql %}#column-aliases-in-where--group-by--having). But column aliases cannot be used in the `ON` clause of the [JOIN Clauses]({% link docs/sql/query_syntax/from.md %}#joins).
* [`COLUMNS()` expression]({% link docs/sql/expressions/star.md %}#columns-expression) can be used to execute the same expression on multiple columns:
* [with regular expressions]({% post_url 2023-08-23-even-friendlier-sql %}#columns-with-regular-expressions)
* [with `EXCLUDE` and `REPLACE`]({% post_url 2023-08-23-even-friendlier-sql %}#columns-with-exclude-and-replace)
Expand Down

0 comments on commit c9dfbf2

Please sign in to comment.