Tu as juste une parenthèse de Trop
[CODE]
Code SQL : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 select hote_id ,dateSejour ,NbrJours ,prix , CASE WHEN prix >0 and NbrJours =1 THEN avg(CASE WHEN prix>0 and NbrJours =1 THEN prix END ) over( partition by hotel, dateSejour) END as MoyennePrix into t2 from t1
Zuuuuut je ne suis pas aieeeuuuuu
Partager