Q: 83 Which three statements about subqueries are true? (Choose three.)
A. A single row subquery can retrieve only one column and one row.
B. A single row subquery can retrieve only one row but many columns.
C. A multiple row subquery can retrieve multiple rows and multiple columns.
D. A multiple row subquery can be compared using the ">" operator.
E. A single row subquery can use the IN operator.
F. A multiple row subquery can use the "=" operator.
Answer: B, C, E
这道题目D跟F错在哪里呢?
------解决方案--------------------------------------------------------
全是英文的,好难理解,帮顶.
------解决方案--------------------------------------------------------
多行子查询可以用 in ,肯定不能用= 阿,〉没试过,应该也是不能用得单条记录没法和多条记录做等于和〉的比较阿
------解决方案--------------------------------------------------------
就是问子查询返回单行或多行的情况。
d:子查询返回多行,当然不能用>符号。如:where col>(select col2 from t)
f:子查询返回多行,当然不能用=符号。如:where col=(select col2 from t)
这里的select col2 from t都是会返回多行值。
这些是最基础的内容。