एक वैकल्पिक विकल्प है row_number()
और एक सशर्त विंडो फ़ंक्शन:
select
name,
weight,
coalesce(
max(case when rn = 4 then weight end) over(order by rn),
99.9
) imagined_weight
from (select c.*, row_number() over(order by weight) rn from cats c) c