आपको CASE
की आवश्यकता नहीं है कथन:
SELECT id, date, last_value(status) OVER (PARTITION BY id ORDER BY date) AS stat
FROM table;
आपको CASE
की आवश्यकता नहीं है कथन:
SELECT id, date, last_value(status) OVER (PARTITION BY id ORDER BY date) AS stat
FROM table;