1.

Which of the following data type is not present in SQL Server?(a) bit(b) boolean(c) hierarchyid(d) geographyI got this question by my school principal while I was bunking the class.This intriguing question originated from Data Types in portion Laying the Foundation of SQL Server

Answer»

Correct option is (B) boolean

For explanation: SQL Server doesn’t have a Boolean data type, at LEAST not by that NAME. To store True/False, Yes/No, and On/Off values, use the bit data type. It accepts only three values: 0, 1, and NULL.



Discussion

No Comment Found

Related InterviewSolutions