erreur pour mon update :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
UPDATE TMP_GAS_INV_901 SET TMP_GAS_INV_901.F1616 = 
(SELECT DISTINCT cnt.F1616,cnt.F254,cnt.F1032 FROM GAS_COUNT cnt
where cnt.F1032 = 
(select MAX(cnt2.f1032) 
from GAS_COUNT cnt2 
where cnt2.F1056=cnt.F1056 and cnt.F1610=cnt2.F1610 and cnt.F254=cnt2.F254
 and 1= (SELECT 1 FROM GAS_MIX MIX WHERE MIX.F1626 = 'SUPER' and MIX.f1610 = cnt2.F1610))
and TMP_GAS_INV_901.F254 = CNT.F254 
and 1= (SELECT 1 FROM GAS_MIX MIX WHERE MIX.F1626 = 'SUPER' and MIX.f1610 = cnt.F1610))
<<


l.erreur est la suiavante :

Msg 116, Level 16, State 1, Line 9
Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

sql me site cette ligne la comme erreur alors que j evoi spas encore la raison :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
and 1= (SELECT 1 FROM GAS_MIX MIX WHERE MIX.F1626 = 'SUPER' and MIX.f1610 = cnt.F1610))

Merci