blob: 34ff9e2616e44c3bb22c8271c4817ae6b1d1f352 [file] [log] [blame]
SELECT
position_id,
employee_id,
MAX(employee_id) OVER(PARTITION BY position_id) AS `last_value`
FROM (
SELECT *
FROM dfs.`window/b4.p4`
ORDER BY position_id, employee_id
)