Bonsoir,
https://dba.stackexchange.com/questions/125363/avoiding-a-divide-by-zero-error-in-a-computed-column
Plusieurs types de solutions, par exemple :
ALTER TABLE
dbo.stock ADD [Result]
AS case when note4 + Note5 + Note6=0then
0 else ( note1 + Note2 + Note3/
note4 + Note5 + Note6) end ;
A bientôt
Thierry DEMAN-BARCELO. Offce Apps&Services MVP. MCSE:Messaging 2016,MCSE:Server Infrastructure 2016(87 MCPs). MCSA Office 365,Microsoft 365 Certified: Messaging Administrator Associate,Modern Desktop Administrator Associate https://base.faqexchange.info