试题详情
- 单项选择题 Click the Exhibit button and examine the data from the ORDERS and CUSTOMERS tables. Which SQL statement retrieves the order ID, customer ID, and order total for the orders that are placed on the same day that Martin placed his orders?()
A、SELECT ord_id, cust_id, ord_total FROM orders, customers WHERE cust_name='Martin' AND ord_date IN ('18-JUL-2000','21-JUL-2000');
B、SELECT ord_id, cust_id, ord_total FROM orders WHERE ord_date IN (SELECT ord_date FROM orders WHERE cust_id = (SELECT cust_id FROM customers WHERE cust_name = 'Martin'));
C、SELECT ord_id, cust_id, ord_total FROM orders WHERE ord_date IN (SELECT ord_date FROM orders, customers WHERE cust_name = 'Martin');
D、SELECT ord_id, cust_id, ord_total FROM orders WHERE cust_id IN (SELECT cust_id FROM customers WHERE cust_name = 'Martin');
- B
关注下方微信公众号,在线模考后查看
热门试题
- Examinethestructurei
- The EMPLOYEES table
- Which one̳
- View the
- You want
- You work
- You are administerin
- You establishe
- ou executed&en
- Your database&
- Which two statements
- Which three activiti
- Which statemen
- Click the
- Which clause should
- Which of
- You noticeQ
- 数据字典信息被存放在哪类文件中()
- 查询出当前的数据库系统时间,精确到秒()
- You completed your w