Update docs/en/query_language/select.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>
This commit is contained in:
BayoNet 2019-08-21 12:04:15 +03:00 committed by GitHub
parent 8c5833964d
commit fde0a2f51e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -552,7 +552,10 @@ You can use the following types of syntax:
- `ASOF JOIN ... ON`
```sql
SELECT expressions_list FROM table_1 ASOF LEFT JOIN table_2 ON equi_cond AND closest_match_cond
SELECT expressions_list
FROM table_1
ASOF LEFT JOIN table_2
ON equi_cond AND closest_match_cond
```
You can use any number of equality conditions and exactly one closest match condition. For example, `SELECT count() FROM A ASOF LEFT JOIN B ON A.a == B.b AND B.t <= A.t`. There is just `table_2.some_col <= table_1.some_col` and `table_1.some_col >= table2.some_col` types of conditions are available. You cannot apply other conditions like `>` or `!=`.