1. 程式人生 > >OCP-1Z0-051-題目解析-第19題

OCP-1Z0-051-題目解析-第19題

19. Evaluate the following query: 
SELECT INTERVAL '300' MONTH, 
INTERVAL '54-2' YEAR TO MONTH, 
INTERVAL '11:12:10.1234567' HOUR TO SECOND 
FROM dual; 

What is the correct output of the above query? 
A. +25-00 , +54-02, +00 11:12:10.123457  
B. +00-300, +54-02, +00 11:12:10.123457 
C. +25-00 , +00-650, +00 11:12:10.123457 
D. +00-300 , +00-650, +00 11:12:10.123457 


Answer: A 
題目解析:INTERVAL是一個把相關字串轉換為時間長度的函式。
INTERVAL '300' MONTH 表示25年0個月(12*25=300), 即+25-00
INTERVAL '54-2' YEAR TO MONTH, 表示54年2個月,即+54-02 
INTERVAL '11:12:10.1234567' HOUR TO SECOND  表示0天11小時12分鐘10秒1234567毫秒,即 +00 11:12:10.123457 
所以答案選A

相關推薦

OCP-1Z0-051-題目解析-19

19. Evaluate the following query: SELECT INTERVAL '300' MONTH, INTERVAL '54-2' YEAR TO MONTH, INTERVAL '11:12:10.1234567' HOUR TO SECON

OCP-1Z0-051-題目解析-16

blog ror cau 花括號 pan 使用 data eval from 16. Evaluate the following query: SQL> SELECT promo_name q‘{‘s start date was }‘ promo_begi

OCP-1Z0-051-題目解析-21

spa true div 一個 swe ron column examine ons 21. Examine the description of the EMP_DETAILS table given below: name NULL

OCP-1Z0-051-題目解析-9

lec 字段 ans cte ria reg tom for rgb 9. Which statement is true regarding the INTERSECT operator? A. It ignores NULL values. B.

OCP-1Z0-051-題目解析-22

22. You need to create a table for a banking application. One of the columns in the table has the following requirements:  1) You want a

OCP-1Z0-051-題目解析-35

35. Which two statements are true regarding constraints? (Choose two.)  A. A table can have only one primary key and one foreign key.  B.

OCP-1Z0-051-題目解析-13

13. View the Exhibit and examine the structure of the PRODUCTS table. You need to generate a report in the following format:CATEGORIES5

OCP-1Z0-051-題目解析-6

6. Examine the structure of the SHIPMENTS table: name                    Null         Type PO_ID               NOT NULL    NUMBER(3)

OCP-1Z0-051-題目解析-12

12. You need to produce a report where each customer's credit limit has been incremented by $1000. Inthe output, the customer's last nam

OCP-1Z0-051 補充5 主查詢和子查詢的注意事項

Which three statements are true regarding sub queries? (Choose three.)A. Multiple columns or expressions can be compared between the main query and sub que

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 補充10 集合操作中的ORDER BY子句

Evaluate the following SQL statement: Which statement is true regarding the outcome of the above query?A. It produces an error because the ORDER BY clause

OCP-1Z0-051 補充26 單行函式特點

Which two statements are true regarding single row functions? (Choose two.) A. They can be nested only to two levelsB. They always return a single result r

OCP-1Z0-051 補充1 TRUNCATE命令的使用

Evaluate the SQL statement:TRUNCATE TABLE DEPT;Which three are true about the SQL statement? (Choose three.)A. It releases the storage space used by the ta

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 補充43 子查詢

Evaluate the following query:      What would be the outcome of executing the above SQL statement? A. It produces an errorB. It shows the names of products

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 補充37

See the exhibit and examine the structure of the CUSTOMERS and GRADES tables: You need to display names and grades of customers who have the highest credit

ocp 1Z0-051 23-70解析

23. Examine thestructure proposed for the TRANSACTIONS table: name Null Type TRANS_ID NOT NULLNUMBER(6) CUST_NAME NOT NULLVAR

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