Update parametric_functions.md

This commit is contained in:
alexey-milovidov 2020-02-03 01:46:43 +03:00 committed by GitHub
parent 61d978c3e1
commit 8e6db95a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,9 +278,6 @@ Simply, the level value could only be 0, 1, 2, 3, it means the maxium event acti
## retention {#retention}
Analytical function that shows how much
certain conditions, for example, retention of dynamics/level [site traffic statistics](https://yandex.ru/support/partner2/statistics/metrika-visitors-statistics.html?lang=en).
The function takes as arguments a set of conditions from 1 to 32 arguments of type `UInt8` that indicate whether a certain condition was met for the event.
Any condition can be specified as an argument (as in [WHERE](../select.md#select-where)).
@ -312,7 +309,7 @@ Let's consider an example of calculating the `retention` function to determine s
**1.** Сreate a table to illustrate an example.
```sql
CREATE TABLE retention_test(date Date, uid Int32)ENGINE = Memory;
CREATE TABLE retention_test(date Date, uid Int32) ENGINE = Memory;
INSERT INTO retention_test SELECT '2020-01-01', number FROM numbers(5);
INSERT INTO retention_test SELECT '2020-01-02', number FROM numbers(10);