55.Evaluate the following two queries:
2016-02-29 16:49
330 查看
55.Evaluate the following two queries:
SQL> SELECT cust_last_name, cust_city FROM customers
WHERE cust_credit_limit IN (1000, 2000, 3000);
SQL> SELECT cust_last_name, cust_city FROM customers
WHERE cust_credit_limit = 1000 OR cust_credit_limit = 2000 OR cust_credit_limit = 3000;
Which statement is true regarding the above two queries?
A.Performance would improve in query 2.
B.Performance would degrade in query 2.
C.There would be no change in performance.
D.Performance would improve in query 2 only if there are null values in the CUST_CREDIT_LIMIT column.
答案:C
SQL> SELECT cust_last_name, cust_city FROM customers
WHERE cust_credit_limit IN (1000, 2000, 3000);
SQL> SELECT cust_last_name, cust_city FROM customers
WHERE cust_credit_limit = 1000 OR cust_credit_limit = 2000 OR cust_credit_limit = 3000;
Which statement is true regarding the above two queries?
A.Performance would improve in query 2.
B.Performance would degrade in query 2.
C.There would be no change in performance.
D.Performance would improve in query 2 only if there are null values in the CUST_CREDIT_LIMIT column.
答案:C
相关文章推荐
- 55.Evaluate the following two queries:
- lua 库
- lua zmq client
- lua zmq server
- 如何在Windows平台使用VS搭建C++/Lua的开发环境
- lua 快速排序
- lua中的坑
- cordova build 报错:failed to notfy projectevluationlistener.afterevaluate<>.
- Ulua_toLua_基本案例(五)_LuaCoroutine
- Ulua_toLua_基本案例(四)_AccessingLuaVariables
- Ulua_toLua_基本案例(三)_CallLuaFunction
- Ulua_toLua_基本案例(二)_ScriptsFromFile
- Ulua_toLua_基本案例(一)
- Lua的C++封装
- lua与c++结合
- ngx_lua_waf利用HPP完全绕过防御机制
- LuaStudio编辑调试软件
- 如何在Windows平台使用VS搭建C++/Lua的开发环境
- Lua安装及遇到的问题
- Lua的table函数库