最新的Oracle Database 12c: SQL Fundamentals - 1z1-061免費考試真題
問題1
A SELECT statement can be used to perform these three functions:
Which set of keywords describes these capabilities?
Which set of keywords describes these capabilities?
正確答案: B
說明:(僅 VCESoft 成員可見)
問題2
What are two reasons to create synonyms? (Choose two.)
正確答案: B,F
說明:(僅 VCESoft 成員可見)
問題3
Which three are true? (Choose three.)
正確答案: A,B,C
說明:(僅 VCESoft 成員可見)
問題4
View the Exhibit and examine the structure of the PRODUCTS, SALES, and
SALE_SUMMARY tables.
SALE_VW is a view created using the following command:
SQL>CREATE VIEW sale_vw AS
SELECT prod_id, SUM(quantity_sold) QTY_SOLD
FROM sales GROUP BY prod_id;
You issue the following command to add a row to the SALE_SUMMARY table:
SQL>INSERT INTO sale_summary
SELECT prod_id, prod_name, qty_sold FROM sale_vw JOIN products
USING (prod_id) WHERE prod_id = 16;
What is the outcome?
SALE_SUMMARY tables.
SALE_VW is a view created using the following command:
SQL>CREATE VIEW sale_vw AS
SELECT prod_id, SUM(quantity_sold) QTY_SOLD
FROM sales GROUP BY prod_id;
You issue the following command to add a row to the SALE_SUMMARY table:
SQL>INSERT INTO sale_summary
SELECT prod_id, prod_name, qty_sold FROM sale_vw JOIN products
USING (prod_id) WHERE prod_id = 16;
What is the outcome?
正確答案: C
問題5
You need to calculate the number of days from 1st Jan 2007 till date.
Dates are stored in the default format of dd-mon-rr.
Which two SQL statements would give the required output? (Choose two.)
Dates are stored in the default format of dd-mon-rr.
Which two SQL statements would give the required output? (Choose two.)
正確答案: B,D
問題6
EMPLOYEES and DEPARTMENTS data:
EMPLOYEES

DEPARTMENTS

On the EMPLOYEES table, EMPLOYEE_ID is the primary key. MGR_ID is the ID managers and refers to the EMPLOYEE_ID.
On the DEPARTMENTS table DEPARTMENT_ID is the primary key.
Evaluate this UPDATE statement.
UPDATE employees
SET mgr_id
. (SELECT mgr_id
. FROM. employees
. WHERE dept_id
. (SELECT department_id
. FROM departments
. WHERE department_name = 'Administration')),
. Salary = (SELECT salary
. . FROM employees
. . WHERE emp_name = 'Smith')
WHERE job_id = 'IT_ADMIN';
What happens when the statement is executed?
EMPLOYEES

DEPARTMENTS

On the EMPLOYEES table, EMPLOYEE_ID is the primary key. MGR_ID is the ID managers and refers to the EMPLOYEE_ID.
On the DEPARTMENTS table DEPARTMENT_ID is the primary key.
Evaluate this UPDATE statement.
UPDATE employees
SET mgr_id
. (SELECT mgr_id
. FROM. employees
. WHERE dept_id
. (SELECT department_id
. FROM departments
. WHERE department_name = 'Administration')),
. Salary = (SELECT salary
. . FROM employees
. . WHERE emp_name = 'Smith')
WHERE job_id = 'IT_ADMIN';
What happens when the statement is executed?
正確答案: A
說明:(僅 VCESoft 成員可見)
問題7
View the Exhibit and examine the structure of the products table.

Using the products table, you issue the following query to generate the names, current list price, and discounted list price for all those products whose list price falls below $10 after a discount of 25% is applied on it.

The query generates an error. What is the reason for the error?

Using the products table, you issue the following query to generate the names, current list price, and discounted list price for all those products whose list price falls below $10 after a discount of 25% is applied on it.

The query generates an error. What is the reason for the error?
正確答案: D
問題8
The CUSTOMERS table has these columns:

A promotional sale is being advertised to the customers in France.
Which WHERE clause identifies customers that are located in France?

A promotional sale is being advertised to the customers in France.
Which WHERE clause identifies customers that are located in France?
正確答案: A
說明:(僅 VCESoft 成員可見)
問題9
Examine this statement:
SELECT student_id, gpa FROM student_grades WHERE gpa > &&value;
You run the statement once, and when prompted you enter a value of 2.0. A report is produced.
What happens when you run the statement a second time?
SELECT student_id, gpa FROM student_grades WHERE gpa > &&value;
You run the statement once, and when prompted you enter a value of 2.0. A report is produced.
What happens when you run the statement a second time?
正確答案: A
說明:(僅 VCESoft 成員可見)
問題10
View the Exhibit and examine the structure of the CUSTOMERS table. Evaluate the following SQL statement:

Which statement is true regarding the outcome of the above query?


Which statement is true regarding the outcome of the above query?

正確答案: C

