网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
(难度:中等)已知表T1中有2行数据,T2中有3行数据,执行SQL语句“select a.* from T1 a,T2 b”后,返回的行数为6
参考答案
更多 “(难度:中等)已知表T1中有2行数据,T2中有3行数据,执行SQL语句“select a.* from T1 a,T2 b”后,返回的行数为6” 相关考题
考题
已知一个函数模板定义为 template T1 FUN(T2 n){return n*5.0;}
已知一个函数模板定义为template <typename T1.typenaine T2>T1 FUN(T2 n){return n*5.0;}若要求以int型数据7为函数实参调用该模板函数,并返回一个double型数据,则该调用应表示为______。
考题
已知一个函数模板定义为: template T1 FUN(T2 n){return n*5.0;} 若
已知一个函数模板定义为:template<typename T1, typename T2>T1 FUN(T2 n){return n*5.0;}若要求以int型数据7为函数实参调用该模板函数,并返回一个double型数据,则该调用应表示为______。
考题
以下13题使用的数据如下: 当前盘当前目录下有数据库db_stock,其中有数据库表stock.dbf,该数据库表的内容是: [*]执行如下SQL语句后 SELECT*FROM stock INTO DBF stock ORDER BY单价
考题
Which of the following SQL statements will return the year and average salary for all employees hired within a given year that have a salary greater than $30,000?()
A.SELECT * FROM t1 UNION SELECT * FROM t2B.SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2C.SELECT * FROM t1 INTERSECT SELECT * FROM t2D.SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
考题
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 t2B.SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2C.SELECT * FROM t1 INTERSECT SELECT * FROM t2D.SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
考题
Given that tables T1 and T2 contain the following rows: Table T1:C1 C25 4 5 2 5 5Table T2: C1 C2 5 1 5 2 5 3Which 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.SELECT * FROM T1 EXCEPT SELECT * FROM T2C.SELECT * FROM T2 UNION EXCEPT SELECT * FROM T1D.SELECT * FROM T1 NOT EXISTS SELECT * FROM T2
考题
设某数据库中有表Tl(c1,c2,c3),并只对U1执行了如下授权语句:GRANT SELECT ON T1 TO U1下列语句中,U1无权执行的是( )。
A.GRANT SELECT ON T1 TO U2B.SELECT*FROM T1C.SELECT c1 FROM T1D.SELECT c1.c2 FROM T1
考题
Given that tables T1 and T2 contain the following rows: Table T1: C1 C2 1 4 1 3 1 2 Table T2: C1 C2 1 1 1 2 1 3 Which of the following queries will return only those rows that exist in both T1 and T2?()A、SELECT * FROM t1 UNION SELECT * FROM t2B、SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2C、SELECT * FROM t1 INTERSECT SELECT * FROM t2D、SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
考题
数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求写SQL语句查询出表中所有的数据,下列哪个SQL语句是正确的()A、Select* From StudentB、Select Name From StudentC、Select Name,Age,IDCard From StudentD、Select Name,Age,IDCard,Sex From Student
考题
现有客户表customers(主键:客户编号cid),包含10行数据,订单表orders(外键:客户编号cid),包含6条数据。执行sql语句:select * from customers right outer join orders on customers.cid=orders.cid。最多返回()条记录。A、10B、6C、4D、0
考题
在多个事务并发执行时,如果并发控制措施不好,则可能会造成事务T1读了事务T2的“脏”数据。这里的“脏”数据是指()。A、T1回滚前的数据B、T1回滚后的数据C、T2回滚前的数据D、T2回滚后的数据
考题
存在两个结构相同的数据库表T1(col1,col2,col3)、T2(col1,col2,col3),写出一SQL语句将所有T1数据导入到T2表()A、select col1,col2,col3 from T1 into T2(col1,col2,col3)B、insert T1 (col1,col,col3) into T2(col1,col2,col3)C、insert into T2 (col1,col2,col3) as select col1,col2,col3 from T1D、insert into T2(col1,col2,col3) select col1,col2,col3 from T1;
考题
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、SELECT * FROM T1 EXCEPT SELECT * FROM T2C、SELECT * FROM T2 UNION EXCEPT SELECT * FROM T1D、SELECT * FROM T1 NOT EXISTS SELECT * FROM T2
考题
Which of the following SQL statements will return the year and average salary for all employees hired within a given year that have a salary greater than $30,000?()A、SELECT * FROM t1 UNION SELECT * FROM t2B、SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2C、SELECT * FROM t1 INTERSECT SELECT * FROM t2D、SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
考题
单选题Given that tables T1 and T2 contain the following rows: Table T1: C1 C2 1 4 1 3 1 2 Table T2: C1 C2 1 1 1 2 1 3 Which of the following queries will return only those rows that exist in both T1 and T2?()A
SELECT * FROM t1 UNION SELECT * FROM t2B
SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2C
SELECT * FROM t1 INTERSECT SELECT * FROM t2D
SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
考题
单选题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
SELECT * FROM T1 EXCEPT SELECT * FROM T2C
SELECT * FROM T2 UNION EXCEPT SELECT * FROM T1D
SELECT * FROM T1 NOT EXISTS SELECT * FROM T2
考题
单选题现有客户表customers(主键:客户编号cid),包含10行数据,订单表orders(外键:客户编号cid),包含6条数据。执行sql语句:select * from customers right outer join orders on customers.cid=orders.cid。最多返回()条记录。A
10B
6C
4D
0
考题
单选题存在两个结构相同的数据库表T1(col1,col2,col3)、T2(col1,col2,col3),写出一SQL语句将所有T1数据导入到T2表()A
select col1,col2,col3 from T1 into T2(col1,col2,col3)B
insert T1 (col1,col,col3) into T2(col1,col2,col3)C
insert into T2 (col1,col2,col3) as select col1,col2,col3 from T1D
insert into T2(col1,col2,col3) select col1,col2,col3 from T1;
考题
单选题Which of the following SQL statements will return the year and average salary for all employees hired within a given year that have a salary greater than $30,000?()A
SELECT * FROM t1 UNION SELECT * FROM t2B
SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2C
SELECT * FROM t1 INTERSECT SELECT * FROM t2D
SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
考题
单选题Which of the following SQL statements will return the year and average salary for all employees hired within a given year that have a salary greater than $30,000?()A
SELECT * FROM t1 UNION SELECT * FROM t2B
SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2C
SELECT * FROM t1 INTERSECT SELECT * FROM t2D
SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
考题
单选题Given that tables T1 and T2 contain the following rows: Table T1: C1 C2 1 4 1 3 1 2 Table T2: C1 C2 1 1 1 2 1 3 Which of the following queries will return only those rows that exist in both T1 and T2?()A
SELECT * FROM t1 UNION SELECT * FROM t2B
SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2C
SELECT * FROM t1 INTERSECT SELECT * FROM t2D
SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
考题
单选题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
SELECT * FROM T1 EXCEPT SELECT * FROM T2C
SELECT * FROM T2 UNION EXCEPT SELECT * FROM T1D
SELECT * FROM T1 NOT EXISTS SELECT * FROM T2
考题
单选题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
SELECT * FROM T1 EXCEPT SELECT * FROM T2C
SELECT * FROM T2 UNION EXCEPT SELECT * FROM T1D
SELECT * FROM T1 NOT EXISTS SELECT * FROM T2
考题
单选题Given that tables T1 and T2 contain the following rows: Table T1: C1 C2 1 4 1 3 1 2 Table T2: C1 C2 1 1 1 2 1 3 Which of the following queries will return only those rows that exist in both T1 and T2?()A
SELECT * FROM t1 UNION SELECT * FROM t2B
SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2C
SELECT * FROM t1 INTERSECT SELECT * FROM t2D
SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
考题
单选题现有客户表customers(主键:客户编号cid),包含10行数据,订单表orders(外键:客户编号cid),包含6条数据。执行sql语句:select * from customers right outer join orders on customers.cid=orders.cid。最多返回()条记录。A
10B
6C
4D
0
考题
(难度:中等)SQL中有一种简便的插入多行数据的方法,这种方法是使用select语句查询出的结果代替VALUES子句。
热门标签
最新试卷