最新的Oracle Database 12c: SQL Fundamentals - 1z0-061免費考試真題

問題1
You need to display the first names of all customers from the customers table that contain the character 'e' and have the character 'a' in the second last position.
Which query would give the required output?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題2
Examine the structure of the INVOICE table:
Exhibit:

Which two SQL statements would execute successfully? (Choose two.)

正確答案: C,D
說明:(僅 VCESoft 成員可見)
問題3
Which two statements are true about WHERE and HAVING clauses? (Choose two)

正確答案: A,F
說明:(僅 VCESoft 成員可見)
問題4
Evaluate the following SQL statements:
Exhibit:

You issue the following command to create a view that displays the IDs and last names of the sales staff in the organization.
Exhibit:

Which two statements are true regarding the above view? (Choose two.)

正確答案: A,B
問題5
Examine the create table statements for the stores and sales tables.
SQL> CREATE TABLE stores (store_id NUMBER(4)CONSTRAINT store_id_pk PRIMARY KEY, store_name VARCHAR2(12, store_address VARCHAR2(20, start_date DATE); SQL> CREATE TABLE sales (sales_id NUMBER(4)CONSTRAINT sales_id_pk PRIMARY KEY, item_id NUMBER(4,quantity NUMBER(10), sales_date DATE, store_id NUMBER(4, CONSTRAINT store_id_fk FOREIGN KEY(store_id)REFERENCES stores(store_id)); You executed the following statement:
SQL> DELETE from stores
WHERE store_id=900;
The statement fails due to the integrity constraint error:
ORA-02292: integrity constraint (HR.STORE_ID_FK) violated
Which three options ensure that the statement will execute successfully? (Choose three.)

正確答案: C,D,E
問題6
You need to create a table named ORDERS that contain four columns:
1 . AN ORDER_ID column of number data type
2 . A CUSTOMER_ID column of number data type
3 . AN ORDER_STATUS column that contains a character data type
4 . A DATE_ORDERED column to contain the date the order was placed.
When a row is inserted into the table, if no value is provided when the order was placed, today's date should be used instead.
Which statement accomplishes this?

正確答案: F
說明:(僅 VCESoft 成員可見)
問題7
Which statements are true regarding the WHERE and HAVING clauses in a SELECT statement? (Choose two.)

正確答案: A,C
問題8
You issue the following query:
SQL> SELECT AVG(MAX(qty))
FROM ord_items
GROUP BY item_no
HAVING AVG(MAX(qty))>50;
Which statement is true regarding the outcome of this query?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題9
View the Exhibit and examine the structure of the PRODUCTS table.

Which two tasks would require subqueries? (Choose two.)

正確答案: B,E