I need to expanse the value of indicator 2 for the rest indicators
respecting the date and enterprise
You can use the analytical function partition by date and enterprise as follows:
select t.*,
max(case when indicator = 2 then value end) over (partition by date, enterprise) as Result
from your_table t;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…