|
LAST_VALUE
|
|||
---|---|---|---|
#18+
Доброго всем дня! Помогите пожалуйста разобраться. Не пойму в чём причина, не выдаёт последнее значение, вроде делаю как написано в инструкции. Код: sql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.
результат L0 |DatePodpis_1 4720 | 2014-01-01 00:00:00 4720 | 2015-01-01 00:00:00 4720 | 2021-01-01 00:00:00 ... |
|||
:
Нравится:
Не нравится:
|
|||
26.04.2021, 09:32 |
|
LAST_VALUE
|
|||
---|---|---|---|
#18+
saley, Причина в том что https://docs.microsoft.com/en-us/sql/t-sql/functions/last-value-transact-sql?view=sql-server-ver15rows_range_clause further limits the rows within the partition by specifying start and end points. For more information, see OVER Clause (Transact-SQL). Переходим по ссылке https://docs.microsoft.com/en-us/sql/t-sql/queries/select-over-clause-transact-sql?view=sql-server-ver15ROWS/RANGE that limits the rows within the partition by specifying start and end points within the partition. It requires ORDER BY argument and the default value is from the start of partition to the current element if the ORDER BY argument is specified. ... |
|||
:
Нравится:
Не нравится:
|
|||
26.04.2021, 09:56 |
|
|
start [/forum/topic.php?fid=46&msg=40065820&tid=1684758]: |
0ms |
get settings: |
11ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
56ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
others: | 16ms |
total: | 155ms |
0 / 0 |