下列查询B=“大数据”且F=“开发平台”,结果集属性列为A、B、C、F的关系代数表达式中,查询效率最高的是( )。
- A.π1,2,3,8(σ2=‘大数据’^1=5^3=6^8=‘开发平台’(R×S))
- B.π1,2,3,8(σ1=5^3=6^8=‘开发平台’(σ2=‘大数据’(R)×S))
- C.π1,2,3,8(σ2=‘大数据’^1=5^3=6(R×σ4=‘开发平台’(S))
- D.π1,2,3,8(σ1=5^3=6(σ2=‘大数据’(R)×σ4=‘开发平台’(S)))
正确答案及解析
正确答案
解析
优化SQL语句,减少比较次数是提高查询效率的有效方法。
在这个题目中,如果连接的两个表越小,那么连接的时候多余的数据就更少,D答案将可以对子表做的操作先做了,最后做连接,是效率最高的一种方法。
包含此试题的试卷
你可能感兴趣的试题
Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.
-
- A.state
- B.constant
- C.instance
- D.member
- 查看答案
Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.
-
- A.actor
- B.instance
- C.component
- D.class
- 查看答案
Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.
-
- A.methods
- B.interactions
- C.interfaces
- D.behaviors
- 查看答案
Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.
-
- A.systems maintenance process
- B.systems implementation process
- C.systems design process
- D.systems testing process
- 查看答案
Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.
-
- A.database models
- B.object models
- C.event models
- D.static system models
- 查看答案