试题详情
- 单项选择题 Examine the description of the CUSTOMERS table: CUSTOMER_ID NUMBER(4) NOT NULL CUSTOMER_NAME VARCHAR2(100) NOT NULL STREET_ADDRESS VARCHAR2(150) CITY_ADDRESS VARCHAR2(50) STATE_ADDRESS VARCHAR2(50) PROVINCE_ADDRESS VARCHAR2(50) COUNTRY_ADDRESS VARCHAR2(50) POSTAL_CODE VARCHAR2(12) CUSTOMER_PHONE VARCHAR2(20) The CUSTOMER_ID column is the primary key for the table. Which statement returns the city address and the number of customers in the cities Los Angeles or San Francisco?()
A、SELECT city_address, COUNT(*) FROM customers WHERE city_address IN ('Los Angeles', 'San Francisco');
B、SELECT city_address, COUNT(*) FROM customers WHERE city_address IN ('Los Angeles', 'San Francisco') GROUP BY city_address;
C、SELECT city_address, COUNT(customer_id) FROM customers WHERE city_address IN ('Los Angeles', 'San Francisco') GROUP BY city_address, customer_id;
D、SELECT city_address, COUNT(customer_id) FROM customers GROUP BY city_address IN ('Los Angeles', 'San Francisco');
- B
关注下方微信公众号,在线模考后查看
热门试题
- An RMAN b
- Given: Whatistheres
- After you
- Evaluate the set of
- In which
- 使用什么命令可以清除表中所有的内容?()
- 如果要查询数据库中所有表的信息,应当使用
- ()是驻留在自己计算机上的软件组件,同客
- In the Ora
- Examinetheparameters
- Your production dat
- At a run
- Which package&
- Which two̳
- Which clause should
- For which̳
- Considerthefollowing
- Which statement
- Given the following
- Given: 12.String&en