OCP-1Z0-051 第149題 子查詢中ALL的應用
Evaluate the following SQL statement:
SQL>SELECT prod_id
FROM costs
WHERE promo_id IN
(SELECT promo_id
FROM promotions
WHERE promo_cost < ALL
(SELECT MAX(promo_cost)
FROM promotions
GROUP BY (promo_end_date - promo_begin_date)));
A. It displays prod IDs in the promo with the lowest cost.
B. It displays prod IDs in the promos with the lowest cost in the same time interval.
C. It displays prod IDs in the promos with the highest cost in the same time interval.
D. It displays prod IDs in the promos with cost less than the highest cost in the same time interval.
答案:D
相關推薦
OCP-1Z0-051 第149題 子查詢中ALL的應用
View the Exhibits and examine the structures of the COSTS and PROMOTIONS tables. Evaluate the following SQL statement:SQL>SELECT prod_id FROM cost
OCP-1Z0-051 第140題 子查詢中使用GROUP BY注意事項
Examine the structure of the PRODUCTS table:Name Null Type PROD_ID NOT NULL NUMBER(4) PROD_NAME
OCP-1Z0-051 第139題 子查詢的注意事項
Which three statements are true about multiple-row subqueries? (Choose three.)A. They can contain a subquery within a subquery. B. They can return multiple
OCP-1Z0-051 第148題 子查詢和ANY,ALL的使用
A.SELECT prod_category, avg(prod_list_price) FROM products GROUP BY prod_category HAVING avg(prod_list_price) < ALL (SELECT max(prod_list_price
OCP-1Z0-051 第141題 子查詢的應用
View the Exhibit and examine the structure of CUSTOMERS and GRADES tables. You need to display names and grades of customers who have the highest credit li
OCP-1Z0-051 第136題 子查詢的使用
View the Exhibit and examine the structure of the PRODUCTS table. Which two tasks would require subqueries? (Choose two.) A. Display the minimum list price
OCP-1Z0-051 第133題 子查詢的用法
A選項正確。 B選項不正確,同一層可以放多個子查詢。 C選項不正確,INSERT、UPDATE、DELETE、SELECT、CREATE TABLE等這些語句中都可以使用子查詢。 D選項正確。 E選項不正確,WHERE子句中的巢狀子查詢最多能巢狀255層。 聯機文件中有詳細說明: http:
OCP-1Z0-051 第113題 GROUP BY, TO_CHAR的應用
Examine the structure of the ORDERS table:Name Null Type ORDER_ID NOT NULL NUMBER(12) ORDER_DATE
OCP-1Z0-051 第142題 巢狀子查詢的應用
View the Exhibit and examine the structure of the PRODUCTS table. Evaluate the following query:SQL> SELECT prod_name FROM products WHERE pr
OCP-1Z0-051 第174題 事務的組成
Which statement is true regarding transactions? (Choose all that apply.) A. A transaction can consist only of a set of DML and DDL statements.B. A part or
OCP-1Z0-051 第51題 SYNONYM同義詞
Which statement is true regarding synonyms? A. Synonyms can be created only for a table. B. Synonyms are used to reference only those tables that are owned
OCP-1Z0-051 第54題
View the Exhibit and examine the structure of the CUSTOMERS table. Evaluate the query statement: SQL> SELECT cust_last_name, cust_city, cust_credit_limi
OCP-1Z0-051 第2題 檢視的WITH CHECK OPTION選項
SQL> CREATE VIEW v4 2 AS SELECT prod_id, cust_id, SUM(quantity_sold) FROM SALES 3 WHERE time_id <= SYSDATE - 2*365 4 GROUP BY prod_id, cust_id
OCP-1Z0-051 第45題 SEQUENCE(序列)的注意事項
Which two statements are true about sequences created in a single instance database? (Choose two.) A. The numbers generated by a sequence can be used only
OCP-1Z0-051 第37題 drop table
一、原題 You issued the following command to drop the PRODUCTS table: SQL> DROP TABLE products; What is the implication of this command? (
OCP-1Z0-051 第43題 序列的cycle選項
Evaluate the following CREATE SEQUENCE statement: CREATE SEQUENCE seq1 START WITH 100 INCREMENT BY 10 MAXVALUE 200 CYCLE NOCACHE; The SEQ1 sequence has gen
OCP-1Z0-051 第62題 where萬用字元
EMPNO ENAME ---------- ---------- 7876 ADAMS 7499 ALLEN 7698 BLAKE 7782 CLARK 7902 FORD 7900 JAMES 7566 JO
OCP-1Z0-051 第172題 事務savepoint的注意事項
The SQL statements executed in a user session are as follows:SQL> CREATE TABLE product (pcode NUMBER(2), pname VARCHA
OCP-1Z0-051 第46題 約束和索引
Which statements are correct regarding indexes? (Choose all that apply.)A. When a table is dropped, the corresponding indexes are automatically dropped.B.
OCP-1Z0-051 第131題 LEFT OUTER JOIN和RIGHT OUTER JOIN的用法
View the Exhibit and examine the structure of the PRODUCT, COMPONENT, and PDT_COMP tables. In PRODUCT table, PDTNO is the primary key. In COMPONENT table,