Академический Документы
Профессиональный Документы
Культура Документы
ORDER_HISTORY
ORDER_ID NUMBER(5)
CUSTOMER_ID NUMBER(5)
ORDER_DATE DATE
TOTAL NUMBER(8,2)
Correct
2.You need to display all the players whose salaries are greater
than or equal to John Brown's salary. Which comparison operator Mark for Review
should you use? (1) Points
=
>
<=
>= (*)
Correct
Correct
4.Using a subquery in which of the following clauses will return a
syntax error? Mark for Review
(1) Points
WHERE
FROM
HAVING
You can use subqueries in all of the above clauses. (*)
Correct
IN (*)
<>
=
LIKE
Correct
Correct
SELECT
FROM
WHERE
GROUP BY (*)
Correct
TEAMS
TEAM_ID NUMBER NOT NULL, Primary Key
TEAM_NAME VARCHAR2 (25)
You need to create a report that lists the names of each team with
more than three goal keepers.
Which SELECT statement will produce the desired result?
(*)
Correct
Correct
(*)
SELECT location_id, COUNT(DISTINCT type)
FROM manufacturer;
SELECT location_id, COUNT(type)
FROM manufacturer
GROUP BY location_id;
SELECT location_id, COUNT(DISTINCT type)
FROM manufacturer
GROUP BY type;
Correct
28.Evaluate the
structure of the Mark for Review
EMPLOYEES and (1) Points
DEPART_HIST
tables:
EMPLOYEES
EMPLOYEE_ID
NUMBER(9)
LAST_NAME
VARCHAR2(25)
FIRST_NAME
VARCHAR2(25)
DEPARTMENT_ID
NUMBER(9)
MANAGER_ID
NUMBER(9)
SALARY
NUMBER(7,2)
DEPART_HIST:
EMPLOYEE_ID
NUMBER(9)
OLD_DEPT_ID
NUMBER(9)
NEW_DEPT_ID
NUMBER(9)
CHANGE_DATE
DATE
You want to
generate a list of
employees who
are in department
10, but used to be
in department 15.
Which query
should you use?
(*)
SELECT employee_id, last_name, first_name, department_id
FROM employees
WHERE (employee_id) IN
(SELECT employee_id
FROM employee_hist
WHERE old_dept_id = 15);
SELECT employee_id, last_name, first_name, department_id
FROM employees
WHERE (employee_id, department_id) =
(SELECT employee_id, new_dept_id
FROM depart_hist
WHERE new_dept_id = 15);
SELECT employee_id, last_name, first_name, department_id
FROM employees
WHERE (employee_id, department_id) IN
(SELECT employee_id, dept_id
FROM employees
WHERE old_dept_id = 15);
The EMPLOYEES
table contains the Mark for Review
following columns: (1) Points
EMPLOYEE_ID
NUMBER(10)
PRIMARY KEY
LAST_NAME
VARCHAR2(20)
FIRST_NAME
VARCHAR2(20)
DEPARTMENT_ID
VARCHAR2(20)
HIRE_DATE
DATE
SALARY
NUMBER(9,2)
BONUS
NUMBER(9,2)
You need to
increase the salary
for all employees
in department 10
by 10 percent. You
also need to
increase the
bonus for all
employees in
department 10 by
15 percent. Which
statement should
you use?
UPDATE employees
SET salary = salary * 1.10, bonus = bonus * 1.15
WHERE department_id = 10;
(*)
UPDATE employees
SET salary = salary * 1.10 AND bonus = bonus * 1.15
WHERE department_id = 10;
UPDATE employees
SET (salary = salary * 1.10) SET (bonus = bonus * 1.15)
WHERE department_id = 10;
UPDATE employees
SET salary = salary * .10, bonus = bonus * .15
WHERE department_id = 10;
46.You need to
update the Mark for Review
area code of (1) Points
employees
that live in
Atlanta.
Evaluate
this partial
UPDATE
statement:
UPDATE
employee
SET
area_code =
770
Which of the
following
should you
include in
your
UPDATE
statement to
achieve the
desired
results?