一、原题
二、题目翻译
http://blog.csdn.net/holly2008/article/details/25251513
Which statement is true regarding the COALESCE function?
A. It can have a maximum of five expressions in a list.
B. It returns the highest NOT NULL value in the list for all rows.
C. It requires that all expressions in the list must be of the same data type.
D. It requires that at least one of the expressions in the list must have a NOT NULL value
答案:C
A. It can have a maximum of five expressions in a list.
B. It returns the highest NOT NULL value in the list for all rows.
C. It requires that all expressions in the list must be of the same data type.
D. It requires that at least one of the expressions in the list must have a NOT NULL value
答案:C
二、题目翻译
关于COALESCE函数哪一句话是正确的?
A. 最大只能包含5个表达式列表。
B. 返回列表中最高的一个非空值。
C. 列表中所有表达式的数据类型必须一致。
D. 列表中至少要有一个表达式为非空。
三、题目解析A. 最大只能包含5个表达式列表。
B. 返回列表中最高的一个非空值。
C. 列表中所有表达式的数据类型必须一致。
D. 列表中至少要有一个表达式为非空。
A选项不正确,coalesce函数的参数,可以有多个。
B选项不正确,是返回列表中第一个非null值。
C选项正确。
D选项不正确,如果表达式都为null,则返回null。
COALESCE函数的详细用法,参考:B选项不正确,是返回列表中第一个非null值。
C选项正确。
D选项不正确,如果表达式都为null,则返回null。
http://blog.csdn.net/holly2008/article/details/25251513
568

被折叠的 条评论
为什么被折叠?



