可学答题网 > 问答 > 1Z0-007题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Examine the data from the ORDERS and


Examine the data from the ORDERS and CUSTOMERS tables. ORDERS ORD_ID ORD_DATE CUST_ID 12-JAN- 100 15 10000 09-MAR- 101 40 8000 09-MAR- 102 35 12500 15-MAR- 103 15 12000 25-JUN- 104 15 6000 18-JUL- 105 20 5000 106 18-JUL- 35 7000 21-JUL- 107 20 6500 04-AUG- 109 10 8000 CUSTOMERS CUST_ID CUST_NAME CITY 10 Smith Los Angeles 15 Bob San Francisco 20 Martin Chicago 25 Mary New York 30 Rina Chicago 35 Smith New York 40 Lind New York Evaluate the SQL statement: SELECT * FROM orders WHERE cust_id = (SELECT cust_id FROM customers WHERE cust_name = 'Smith'); What is the result when the query is executed?()

  • A ORD_ID ORD_DATE CUST_ID ORD_TOTAL 09-MAR- 102 35 12500 18-JUL- 106 35 7000 04-AUG- 108 10 8000
  • B ORD_ID ORD_DATE CUST_ID ORD_TOTAL 09-MAR- 102 35 12500 18-JUL- 106 35 7000
  • C ORD_ID ORD_DATE CUST_ID ORD_TOTAL 04-AUG- 108 10 8000
  • D The query fails because the subquery returns more than one row.
  • E The query fails because the outer query and the inner query are using different tables.
参考答案
参考解析:
分类:1Z0-007题库
相关推荐

1、Examine the data from the ORDERS and

Examine the data from the ORDERS and CUSTOMERS tables.Evaluate the SQL statement:What is the result when the query is executed?()ABCD The quer...

2、Examine the data from the EMP table:

Examine the data from the EMP table:EMP_ID DEPT_ID COMMISSION1 10 5002 20 10003 104 10 6005 30 8006 30 2007 108 20 300The COMMISSION column ...

3、Examine the data in the EMPLOYEES and

Examine the data in the EMPLOYEES and EMP_HIST tables:The EMP_HIST table is updated at the end of every year. The employee ID, name, job ID,...

4、Examine the data in the EMPLOYEES tab

Examine the data in the EMPLOYEES table:Which three subqueries work? ()A SELECT * FROM employees where salary > (SELECT MIN(salary) FROM emplo...

5、Examine the data of the EMPLOYEES tab

Examine the data of the EMPLOYEES table.EMPLOYEES (EMPLOYEE_ID is the primary key. MGR_ID is the ID of managers and refers to the EMPLOYEE_ID)E...

6、Examine the data from the ORDERS and

Examine the data from the ORDERS and CUSTOMERS table.ORDERSORD_ID ORD_DATE CUST_ID ORD_TOTAL100 12-JAN-2000 15 1000009-MAR-101 40 800009-MAR-102 35...