使用下列哪个命令可以使结果表中除了匹配行外,还包括右表有的但左表中不匹配的行?()A、LEFT OUTER JOINB、RIGHT OUTER JOINC、NATURAL JOIND、INNER JOIN
使用下列哪个命令可以使结果表中除了匹配行外,还包括右表有的但左表中不匹配的行?()
- A、LEFT OUTER JOIN
- B、RIGHT OUTER JOIN
- C、NATURAL JOIN
- D、INNER JOIN
相关考题:
用SQL语句进行表的查询操作,使用 ()语句。如果要进行分组查询,应使用 ()子句;如果要对查询结果进行排序,要使用 () 子句;查询使用连接操作时,可以使用的外连接方式主要有左连接() ,右连接() ,全连接 () 等几种。A UPDATE , ORDER BY, GROUP BY, LEFT JOIN, RIGHT JOIN, FULL JOINB SELECT , GROUP BY, ORDER BY, LEFT JOIN,RIGHT JOIN, FULL JOINC SELECT , ORDER BY , GROUP BY , LEFT JOIN, RIGHT JOIN,FULL JOIND SELECT ,GROUP BY , ORDER BY , RIGHT JOIN, LEFT JOIN, FULL JOIN
根据SQL标准,查询表student(sno,sname,sex,dept)中所有学生的选修课程数,其中选修记录在表SC(sno,cno,grade)中,两表中sno为关联字段。下面哪条语句合适?()A select sno,count(cno) from SCB select sno,count(cno) from studentC select a.sno,count(cno) from student a left outer join SCD select a.sno,count(cno) from SC left outer join student a
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?()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) ;
假如有两个表的连接是这样的:table_1 INNERJOIN table_2,其中table_1和table_2是两个具有公共属性的表,这种连接会生成( )结果集。A.包括table_1中的所有行,不包括table_2的不匹配行B.包括table_2中的所有行,不包括table_1的不匹配行C.包括两个表的所有行D.只包括table_1和table_2满足条件的行
使用下列()命令可以使结果表中除了匹配行外,还包括右表有的但左表中不匹配的行。A、LEFT OUTER JOINB、RIGHT OUTER JOINC、NATURAL JOIND、INNER JOIN
关于HQL的连接查询,说法错误的是()。A、inner join 或 join用于内连接B、inner join fetch或 join fetch用于迫切内连接C、left outer join fetch 或 left join fetch用于迫切左外连接D、right outer join fetch 或 right join fetch用于迫切右外连接
对于表A(col1 int,col2 char(1)),表B(col1 int,col2char(1)),为确保表A的数据全部被保留,下面正确的联接方式是()A、A inner join BB、A left join BC、A right join BD、Across join B
以下哪两组联接关键字可以创建这样一个联接,该联接包括SELECT语句中指定的第一个表中的不匹配行?()A、LEFT OUTER JOIN和FULL OUTER JOINB、RIGHTOUTERJOIN和LEFT OUTER JOINC、USING和HAVINGD、OUTER JOIN和USING
假如有两个表的连接是这样的:table_1 INNERJOINtable_2其中table_1和table_2是两个具有公共属性的表,这种连接会生成哪种结果集?()A、包括table_1中的所有行,不包括table_2的不匹配行B、包括table_2中的所有行,不包括table_1的不匹配行C、包括和两个表的所有行D、只包括table_1和table_2满足条件的行
现有客户表customers(主键:客户编号cid),包含10行数据,订单表orders(外键:客户编号cid),包含6条数据。执行sql语句:select * from customers right outer join orders on customers.cid=orders.cid。最多返回()条记录。A、10B、6C、4D、0
What is true regarding subqueries?()A、The inner query always sorts the results of the outer queryB、The outer query always sorts the results of the inner queryC、The outer query must return a value to the outer queryD、The inner query returns a value to the outer queryE、The inner query must always return a value or the outer query will give an error
单选题对于表A(col1 int,col2 char(1)),表B(col1 int,col2char(1)),为确保表A的数据全部被保留,下面正确的联接方式是()AA inner join BBA left join BCA right join BDAcross join B
单选题使用下列哪个命令可以使结果表中除了匹配行外,还包括右表有的但左表中不匹配的行?()ALEFT OUTER JOINBRIGHT OUTER JOINCNATURAL JOINDINNER JOIN
单选题关于HQL的连接查询,说法错误的是()。Ainner join 或 join用于内连接Binner join fetch或 join fetch用于迫切内连接Cleft outer join fetch 或 left join fetch用于迫切左外连接Dright outer join fetch 或 right join fetch用于迫切右外连接
单选题使用下列()命令可以使结果表中除了匹配行外,还包括右表有的但左表中不匹配的行。ALEFT OUTER JOINBRIGHT OUTER JOINCNATURAL JOINDINNER JOIN
( 难度:中等)在Hive中,以下哪个SQL语句是错误的A.hive> SELECT ID, NAME, o.AMOUNT, o.DATE > FROM CUSTOMERS c > LEFT OUTER JOIN ORDERS o > ON (ID = o.CUSTOMER_ID);B.hive> SELECT ID, NAME, o.AMOUNT, o.DATE > FROM CUSTOMERS c > RIGHT OUTER JOIN ORDERS o > ON (ID = o.CUSTOMER_ID);C.hive> SELECT ID, NAME, o.AMOUNT, o.DATE > FROM CUSTOMERS c > FULL OUTER JOIN ORDERS o > ON (ID = o.CUSTOMER_ID);D.hive> SELECT ID, NAME, o.AMOUNT, o.DATE > FROM CUSTOMERS c > FULL OUTER JOIN ORDERS o > ON (ID = o.CUSTOMER_ID OR Name = o.Name);
( 难度:中等)多表关联时,以左表为主体进行关联所使用的关键字是?A.RIGHT JOINB.INNER JOINC.ANDD.LEFT_JOIN