Namit Kumar

Namit Kumar

  • NA
  • 14
  • 7.6k

Sql Server

Dec 29 2014 7:38 AM
why following T-SQL gives a famous divide by zero error.

SELECT 10000/(17/17/17) AS Result2;

When we execute above query it gives following error:

Msg 8134, Level 16, State 1, Line 1 Divide by zero error encountered.

Answers (1)