You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example:
|c1|c2|
|--|--|
|0 | 1|
|1 | 1|
|2 | 2|
|3 | 2|
|4 | 2|
SELECT at(c1, 1) over w as co from t1 window w as(partition by c2 order by c1 rows between unbounded preceding and current row);
-- output
-- | co |
-- |----|
-- |NULL|
-- |0 |
-- |NULL|
-- |2 |
-- |3 |
But run SELECT at(c1, 1) over w as co from t1 window w as(partition by c2 order by c1 rows between unbounded preceding and 1000 preceding); is the same result. Why?
The text was updated successfully, but these errors were encountered:
We have this example:
But run
SELECT at(c1, 1) over w as co from t1 window w as(partition by c2 order by c1 rows between unbounded preceding and 1000 preceding);
is the same result. Why?The text was updated successfully, but these errors were encountered: