CMS专题

单选题Given that tables T1 and T2 contain the following rows: Table T1: C1 C2 5 4 5 2 5 5 Table T2: C1 C2 5 1 5 2 5 3 Which of the following queries will return only those rows that exist in T1 and not in T2?()A SELECT * FROM T1 MINUS SELECT * FROM T2B SELEC

题目
单选题
Given that tables T1 and T2 contain the following rows: Table T1: C1 C2 5 4 5 2 5 5 Table T2: C1 C2 5 1 5 2 5 3 Which of the following queries will return only those rows that exist in T1 and not in T2?()
A

SELECT * FROM T1 MINUS SELECT * FROM T2

B

SELECT * FROM T1 EXCEPT SELECT * FROM T2

C

SELECT * FROM T2 UNION EXCEPT SELECT * FROM T1

D

SELECT * FROM T1 NOT EXISTS SELECT * FROM T2

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

在下列查询语句中,与SELECT TABl*FROM,TABl WHERE InStr([简历],”篮球”)<>o功能相同的语句是( )。

A.SELECT TABl.*FROM TABl WHERE TABl.简历Like”篮球”

B.SELECT TABl.*FROM TABl WHERE TABl.简历Like”*篮球”

C.SELECT TABl.*FROM TABl WHERE TABl.简历Like”*篮球*”

D.SELECT TABl.*FROM TABl WHERE TABl.简历Like”篮球*”


正确答案:C
本题考查的是InStr函数。InStr函数的格式为:InStr(字符表达式1,字符表达式2[,数值表达式])其功能是检索字符表达式2在字符表达式l中最早出现的位置,返回整数,若没有符合条件的数,则返回0。本题的查询的条件是在简历字段中查找是否出现了“篮球”字样。应使用关键词“Like”;在“篮球”的前后都加上“*”,代表要查找的是“篮球”前面或后面有多个或0个字符的数据,这样也就是查找所有简历中包含“篮球”的记录。

第2题:

Assuming PUBLIC has been granted all privileges on table T1, which of the following statements would continue to permit any user to add rows to table T1, but not remove them?()

A.REVOKE DROP ON t1 FROM PUBLIC

B.REVOKE UPDATE ON t1 FROM PUBLIC

C.REVOKE DELETE ON t1 FROM PUBLIC

D.REVOKE CONTROL ON t1 FROM PUBLIC


参考答案:C

第3题:

You use the segment advisor to help determine objects for which space may be reclaimed.Which three statements are true about the advisor given by the segment advisor?()

A. It may advise the use of online table redefinition for tables in dictionary managed tablespace.

B. It may advise the use of segment shrink for tables in dictionary managed tablespaces it the no chained rows.

C. It may advise the use of online table redefinition for tables in locally managed tablespaces

D. It will detect and advise about chained rows.

E. It may advise the use of segment shrink for free list managed tables.


参考答案:B, C, D

第4题:

下面()集合包含在DataSet集合中。

  • A、Tables集合
  • B、Columns集合
  • C、Rows集合
  • D、Parameters集合

正确答案:A

第5题:

Given the following tables: CONTINENTS ID NAME COUNTRIES1 Antarctica 02 Africa 533 Asia 474 Australia 145 Europe 436 North America 237 South America 12REGION ID LOCATION 1 East 2 WestHow many rows would be returned using the following statement? SELECT location FROM continents, region()

A.2

B.7

C.9

D.14


参考答案:D

第6题:

Given that tables T1 and T2 contain the following rows:Table T1: C1 C2 1 4 1 3 1 2Table T2: C1 C2 1 1 1 2 1 3Which of the following queries will return only those rows that exist in both T1 and T2?()

A.SELECT * FROM t1 UNION SELECT * FROM t2

B.SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2

C.SELECT * FROM t1 INTERSECT SELECT * FROM t2

D.SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)


参考答案:C

第7题:

The following statements:CREATE TABLE t1 (col1 INT NOT NULL, PRIMARY KEY(col1)); CREATE TABLE t2 (col1 INT NOT NULL, col2 CHAR(1) NOT NULL, PRIMARY KEY (col1, col2), FOREIGN KEY (col1) REFERENCES t1 (col1) ON DELETE CASCADE ON UPDATE RESTRICT); CREATE TABLE t3 (col1 INT NOT NULL, col2 INT NOT NULL, PRIMARY KEY (col1, col2),FOREIGN KEY (col1) REFERENCES t1 (col1) ON DELETE NO ACTION ON UPDATE RESTRICT);INSERT INTO t1 VALUES (1), (2); INSERT INTO t2 VALUES (1, ‘a‘), (1, ‘b‘), (2,‘c‘); INSERT INTO t3 VALUES (1, 100), (2, 200), (2,300);How many rows will be deleted by the following DELETE statement? DELETE FROM t1 WHERE col1= 1;()

A.4

B.3

C.1

D.0


参考答案:D

第8题:

下面不属于同一函数模板的是()。A.template t1 max(t1 &a,t1 &b) {…}template<

下面不属于同一函数模板的是( )。

A.template<class t1> t1 max(t1 &a,t1 &b) {…}template<class t2> t2 max(t2 &a,t2 &b) {…}

B.template<class t1>t1 max(t1 a,t1 b){…}template<class t2>t2 max(t2 &a,t2 &b){…}

C.template<class t1> t1 max(t1 * a,t1 * b) {…} template<class t2> t2 max(t2 &a,t2 &b) {…}

D.template<class t1>t1 max(t1 a,t1 b){…}template<class t2>t2 max(t2 &a,t2 &b,t2 c){…}


正确答案:D
解析:函数模板的重载是靠模板参数的数量不同来区分的,因为函数模板是抽象的,有待于进一步实例化,所以靠参数类型无法区别调用哪个函数模板。

第9题:

同一组织T1与T2值的关系是()。

  • A、T1值大于T2值
  • B、T1值小于T2值
  • C、T1值等于T2值
  • D、T1驰豫发生早于T2驰豫
  • E、T1驰豫发生晚于T2驰豫

正确答案:A

第10题:

包含在DataSet集合中的集合是()。

  • A、Rows集合
  • B、Columns集合
  • C、Tables集合
  • D、Parameters集合

正确答案:C

更多相关问题