Oracle Database SQL - 1z1-071 模擬練習
Which three statements are true about inner and outer joins?
正解: A,C
解説: (PassTest メンバーにのみ表示されます)
Examine this query:
SELECT employee_id,first_name,salary
FROM employees
WHERE hire_date>'&1';
Which two methods should you use to prevent prompting for a hire date value when this query is executed?
SELECT employee_id,first_name,salary
FROM employees
WHERE hire_date>'&1';
Which two methods should you use to prevent prompting for a hire date value when this query is executed?
正解: A,B
解説: (PassTest メンバーにのみ表示されます)
MANAGER is an existing role with no privileges or roles.
EMP is an existing role containing the CREATE TABLE privilege.
EMPLOYEES is an existing table in the HR schema.
Which two commands execute successfully?
EMP is an existing role containing the CREATE TABLE privilege.
EMPLOYEES is an existing table in the HR schema.
Which two commands execute successfully?
正解: B,E
解説: (PassTest メンバーにのみ表示されます)
Examine this list of queries:
Which two statements are true?
Which two statements are true?
正解: B,E
Examine the data in the EMP table:

You execute this query:
SELECT deptno AS "Department", AVG(sal) AS AverageSalary, MAX(sal) AS "Max Salary" FROM emp WHERE sal >= 12000 GROUP BY "Department " ORDER BY AverageSalary; Why does an error occur?

You execute this query:
SELECT deptno AS "Department", AVG(sal) AS AverageSalary, MAX(sal) AS "Max Salary" FROM emp WHERE sal >= 12000 GROUP BY "Department " ORDER BY AverageSalary; Why does an error occur?
正解: B
解説: (PassTest メンバーにのみ表示されます)
Examine the description of the EMPLOYEES table:

Which query is valid?

Which query is valid?
正解: D
解説: (PassTest メンバーにのみ表示されます)
Evaluate the following SQL statement
SQL>SELECT promo_id, prom _category FROM promotions
WHERE promo_category='Internet' ORDER BY promo_id
UNION
SELECT promo_id, promo_category FROM Pomotions
WHERE promo_category = 'TV'
UNION
SELECT promoid, promocategory FROM promotions WHERE promo category='Radio' Which statement is true regarding the outcome of the above query?
SQL>SELECT promo_id, prom _category FROM promotions
WHERE promo_category='Internet' ORDER BY promo_id
UNION
SELECT promo_id, promo_category FROM Pomotions
WHERE promo_category = 'TV'
UNION
SELECT promoid, promocategory FROM promotions WHERE promo category='Radio' Which statement is true regarding the outcome of the above query?
正解: D
解説: (PassTest メンバーにのみ表示されます)
Which two statements are true about Entity Relationships?
正解: A
解説: (PassTest メンバーにのみ表示されます)
Examine the description of the SALES table:

The SALES table has 5,000 rows.
Examine this statement:
CREATE TABLE sales1 (prod id, cust_id, quantity_sold, price)
AS
SELECT product_id, customer_id, quantity_sold, price
FROM sales
WHERE 1=1
Which two statements are true?

The SALES table has 5,000 rows.
Examine this statement:
CREATE TABLE sales1 (prod id, cust_id, quantity_sold, price)
AS
SELECT product_id, customer_id, quantity_sold, price
FROM sales
WHERE 1=1
Which two statements are true?
正解: A,D
解説: (PassTest メンバーにのみ表示されます)
Which two are true about unused columns?
正解: A,C
解説: (PassTest メンバーにのみ表示されます)
Which three are true?
正解: A,C,G
解説: (PassTest メンバーにのみ表示されます)
View the Exhibits and examine the structure of the COSTS and PROMOTIONS tables.
You want to display PROD IDS whose promotion cost is less than the highest cost PROD ID in a pro motion time interval.
Examine this SQL statement:
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)) );
What will be the result?
You want to display PROD IDS whose promotion cost is less than the highest cost PROD ID in a pro motion time interval.
Examine this SQL statement:
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)) );
What will be the result?
正解: A
解説: (PassTest メンバーにのみ表示されます)
Examine the description of the CUSTOMERS table:

Which two SELECT statements will return these results:
CUSTOMER_ NAME
--------------------
Mandy
Mary

Which two SELECT statements will return these results:
CUSTOMER_ NAME
--------------------
Mandy
Mary
正解: C,F
解説: (PassTest メンバーにのみ表示されます)
Which two statements are true about truncate and delete?
正解: A,D
解説: (PassTest メンバーにのみ表示されます)
Which two queries execute successfully?
正解: C,D
解説: (PassTest メンバーにのみ表示されます)