1.

To disallow zero month or day parts in dates, the option used is _____________(a) NO_ZERO_IN_DATE(b) NO_DATE_WITH_ZERO(c) ZERO_IN_DATE(d) DATE_WITH_ZEROThis question was addressed to me in an internship interview.This intriguing question comes from Date and Time Data Types topic in chapter Data Type Reference, Operators and Functions of MySQL

Answer»

The CORRECT answer is (a) NO_ZERO_IN_DATE

Explanation: MySQL permits to store the DATES where the day or MONTH and day are zero in a DATE or DATETIME COLUMN. This is helpful for applications that need to store birthdates for which the exact date is unknown.



Discussion

No Comment Found

Related InterviewSolutions