The SQL mode to check for divide by zero error is ________________
(a) STRICT_ALL_TABLES
(b) ERROR_FOR_DIVISION_BY_ZERO
(c) ERROR_DIVIDE_BY_ZERO
(d) ERROR_WHEN_DIVIDE_BY_ZERO
(a) STRICT_ALL_TABLES
(b) ERROR_FOR_DIVISION_BY_ZERO
(c) ERROR_DIVIDE_BY_ZERO
(d) ERROR_WHEN_DIVIDE_BY_ZERO
Right answer is (b) ERROR_FOR_DIVISION_BY_ZERO
To explain: To enable the check for divide by zero errors int all the storage engines, the SQL mode named ‘ERROR_FOR_DIVISION_BY_ZERO’ can be enabled. This is done by using SET sql_mode = ‘mode_name’.