CLOUD COMPUTING
DATABASE MANAGEMENT
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
date
|
|
alphanumeric
|
|
float
|
|
boolean
|
Detailed explanation-1: -There is no boolean data type in SQL Server. However, a common option is to use the BIT data type. A BIT data type is used to store bit values from 1 to 64. So, a BIT field can be used for booleans, providing 1 for TRUE and 0 for FALSE.
Detailed explanation-2: -BOOLEAN can be used as a data type when defining a column in a table or a variable in a database procedure. Support for the BOOLEAN data type helps migrations from other database products. Boolean columns accept as input the SQL literals FALSE and TRUE.
Detailed explanation-3: -The BOOLEAN data type is a 1-byte data type. The legal values for Boolean are true (âtâ), false (âfâ), or NULL. The values are not case sensitive.
Detailed explanation-4: -A Boolean data type has one of two possible values (usually denoted true and false), intended to represent the two truth values of logic and Boolean algebra.
Detailed explanation-5: -The SQL Boolean data type is not included in SQL Server. Other databases like Oracle and MySQL include the Boolean data type that accepts the values of TRUE, and FALSE. SQL Server uses the bit data type that stores 0, 1, and NULL values that can be used instead of the TRUE, FALSE, and NULL values.