题目内容 (请给出正确答案)
[主观题]

Consider the query:Mysql> SET @run = 15;Mysql> EXPLAIN SELECT objective, stage, COUNT (sta

Consider the query:Mysql> SET @run = 15;Mysql> EXPLAIN SELECT objective, stage, COUNT (stage)FROM iteminformationWHERE run=@run AND objective=’7.1’GROUP BY objective,stageORDER BY stage;The iteminformation table has the following indexes;Mysql> SHOW INDEXES FROM iteminformation:This query is run several times in an application with different values in the WHERE clause in a growing data set.What is the primary improvement that can be made for this scenario?()

Consider the query:Mysql> SET @run = 15;Mysql> EXP

Consider the query:Mysql> SET @run = 15;Mysql> EXP

A.Do not pass a user variable in the WHERE clause because it limits the ability of the optimizer to use indexes

B.Add an index on the objective column so that is can be used in both the WHERE and GROUP BY operations

C.Drop the run_2 index because it has caused a conflict in the choice of key for this query

D.Execute the run_2 index because it has caused a conflict in the choice of key for this query

E.Add a composite index on (run,objective,stage) to allow the query to fully utilize an index

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“Consider the query:Mysql> SET …”相关的问题

第1题

query的来源()

A.系统自动触发

B.RA

C.M

点击查看答案

第2题

One of the difficulties in building an SQL-like query language for the Web is the absence
of a database(131)for this huge, heterogeneous repository of information. However, if we are interested in HTML documents only, we can construct a virtual schema from the implicit structure of these files. Thus, at the highest level of(132), every such document is identified by its Uniform. Resource Locator(URL), and a(133)and a text. Also, Web severs provide some additional information such as the type, length, and the last modification date of a document. So for data mining purposes, we can consider the set of all HTML documents as a relation:Document(url, rifle, text, type, length, modif)Where all the(134)are character strings. In this framework, an individual document is identified with a(135)in this relation. Of course, if some optional information is missing from the HTML document, the associate fields will be left blank, but this is not uncommon in any database.

A.schema

B.platform

C.module

D.relation

点击查看答案

第3题

One of the difficulties in building an SQL,like query language for the Web is the absence
of a database(71) for this huge, heterogeneous repository of information. However, if we are interested in HTML documents only, we can construct a virtual schema from the implicit structure of these files. Thus, at the highest level of(72) , every such document is identified by its Uniform. Resource Locator(URL), has a(73) and a text. Also, Web servers provide some additional information such as the type, length, and the last modification date of a document. So, for data mining purposes, we can consider the set of all HTML documents as a relation:Document(url, title, text, type, length, modif)Where all the(74) are character strings. In this framework, an individual document is identified with a(75) in this relation. Of course, if some optional information is missing from the HTML document, the associate fields will be left blank, but this is not uncommon in any database.

A.schema

B.platform

C.module

D.relation

点击查看答案

第4题

One of the difficulties in building an SQL-like query lange for the Web is the absence of
a database schema for this huge, heterogeneous repository of information. However, if we are interested in HTML documents only, we can construct a virtual(66)from the implicit structure of these files. Thus, at the highest level of(67), every such document is identified by its Uniform. Resource Locator(URL), has a title and a text Also, Web servers provide some additional information such as the type, length, and the last modification date of a document. So, for data mining purposes, we can consider the site of all HTML documents as arelation:

Document(url,(68), text, type, length, modify)

Where all the(69)are character strings. In this framework, anindividual document is identified with a(70)in this relation. Of course, if some optional information is missing from the HTML document, the associate fields will de left blank, but this is not uncommon in any database.

A.schema

B.relation

C.platform

D.module

点击查看答案

第5题

- ___________ - Could you please consider again?A、My computer went wrong.B、I'm fond

A.My computer went wron

B.I'm fond of reading novels.

C.Let me help you carry the suitcas

D.I'm afraid we can't give you that position.

点击查看答案

第6题

W: What should a college graduate consider most while choosing a job?M: It depends. For
W: What should a college graduate consider most while choosing a job?

M: It depends. For me, the salary, the workplace, the colleagues are all secondary to the future development of the job.

Q: What is the man’s most important consideration for choosing a job?

A.The salary.

B.The workplace.

C.Good colleagues.

D.Future development of the job.

点击查看答案

第7题

在一棵m阶的B+树中,若在某结点中插入一个新关键码而引起该结点分裂,则此结点中原有的关键码个数为_______。 Consider a B+ tree with rank of m, if inserting a new key value into a node cause this node to split, then this node originally has ___ key values.

A.m-1

B.m

C.m+1

D.2*m

点击查看答案

第8题

Click the Exhibit button and examine the data in the EMPLOYEES and DEPARTMENTS tables.You
want to retrieve all employees‘ last names, along with their managers‘ last names and their department names. Which query would you use?()

Click the Exhibit button and examine the data in t

A.SELECT last_name, manager_id, department_name FROM employees e FULL OUTER JOIN departments d ON (e.department_id = d.department_id);

B.SELECT e.last_name, m.last_name, department_name FROM employees e LEFT OUTER JOIN employees m on (e.manager_id = m.employee_id) LEFT OUTER JOIN departments d ON (e.department_id = d.department_id);

C.SELECT e.last_name, m.last_name, department_name FROM employees e RIGHT OUTER JOIN employees m on (e.manager_id = m.employee_id) LEFT OUTER JOIN departments d ON (e.department_id = d.department_id);

D.SELECT e.last_name, m.last_name, department_name FROM employees e LEFT OUTER JOIN employees m on (e.manager_id = m.employee_id) RIGHT OUTER JOIN departments d ON (e.department_id = d.department_id);

E.SELECT e.last_name, m.last_name, department_name FROM employees e RIGHT OUTER JOIN employees m on (e.manager_id = m.employee_id) RIGHT OUTER JOIN departments d ON (e.department_id = d.department_id);

F.SELECT last_name, manager_id, department_name FROM employees e JOIN departments d ON (e.department_id = d.department_id) ;

点击查看答案

第9题

ExhibitExamine the data in the EMPLOYEES and DEPARTMENTS tables.You want to retrieve all e
mployees‘ last names, along with their manager‘s last names and their department names. Which query would you use?()

ExhibitExamine the data in the EMPLOYEES and DEPAR

A. SELECT last_name, manager_id, department_name FROM employees e FULL OUTER JOIN department d ON (e.department_id = d.department_id);

B. SELECT e.last_name, m.last_name, department_name FROM employees e LEFT OUTER JOIN employees m on (e.managaer_id = m.employee_id) LEFT OUTER JOIN department d ON (e.department_id = d.department_id);

C. SELECT e.last_name, m.last_name, department_name FROM employees e RIGT OUTER JOIN employees m on (e.manager_id = m.employee_id) FULL OUTER JOIN department d ON (e.department_id = d.department_id);

D. SELECT e.last_name, m.last_name, department_name FROM employees e LEFT OUTER JOIN employees m on (e.manager_id = m.employee_id) RIGT OUTER JOIN department d ON (e.department_id = d.department_id);

E. SELECT e.last_name, m.last_name, department_name FROM employees e RIGHT OUTER JOIN employees m on (e.manager_id = m.employee_id) RIGHT OUTER JOIN departments d ON (e.department_id = d.department_id)

F. SELECT last_name, manager_id, department_name FROM employees e JOIN department d ON (e.department_id = d.department_id);

点击查看答案

第10题

The EMPLOYEE table contains the following information: EMPNO NAME WORKDEPT101 SAM A11 102
JOHN C12 103 JANE -104 PAT Remote105 ANNE -106 BOB A11The MANAGER table contains the following information: MGRID NAME DEPTNO EMPCOUNT1 WU B01 - 2 JONES A11 - 3 CHEN - - 4 SMITH - -5 THOMAS C12 -After this statement is executed: UPDATE manager m SET empcount = (SELECT COUNT(workdept) FROM employee e WHERE workdept=m.deptno)What is the result of the following query?()SELECT mgrid, empcount FROM MANAGER WHERE empcount IS NOT NULL ORDER BY mgrid

A. MGRID EMPCOUNT ----- -------- 1 0 2 2 5 1

B. MGRID EMPCOUNT ----- -------- 1 0 2 2 3 0 4 0 5 1

C. MGRID EMPCOUNT ----- -------- 1 3 2 3 3 3 4 3 5 3

D. MGRID EMPCOUNT ----- -------- 1 0 2 2 3 2 4 2 5 1

点击查看答案
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
温馨提示
每个试题只能免费做一次,如需多次做题,请购买搜题卡
立即购买
稍后再说
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
赏学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反赏学吧购买须知被冻结。您可在“赏学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
赏学吧
点击打开微信