Question 196
View the Exhibit and examine the structure of ORDERS and CUSTOMERS tables.
(Choose the best answer.)
You executed this UPDATE statement:
UPDATE
( SELECT order_date, order_total, customer_id FROM orders)
Set order_date = '22-mar-2007'
WHERE customer_id IN
(SELECT customer_id FROM customers
WHERE cust_last_name = 'Roberts' AND credit_limit = 600);
Which statement is true regarding the execution?
Question 197
Examine the description of the EMPLOYEEStable:
Which query is valid?
SELECT dept_id, MAX(AVG(salary)) FROM employees GROUP BY dept_id;
Question 198
Examine the command to create the BOOKS table.
The BOOK_IDvalue 101does not exist in the table.
Examine the SQL statement:
Which statement is true?
Question 199
View the exhibit and examine the structure in ORDERS and ORDER_ITEMS tables.
You need to create a view that displays the ORDER_ID, ORDER_DATE, and the total number of items in each order.
Which CREATE VIEW statement would create the views successfully?
Question 200
View the exhibit for the structure of the STUDENTand FACULTYtables.
You need to display the faculty name followed by the number of students handled by the faculty at the base location.
Examine the following two SQL statements:
Statement 1
SQL>SELECT faculty_name, COUNT(student_id)
FROM student JOIN faculty
USING (faculty_id, location_id)
GROUP BY faculty_name;
Statement 2
SQL>SELECT faculty_name, COUNT(student_id)
FROM student NATURAL JOIN faculty
GROUP BY faculty_name;
Which statement is true regarding the outcome?
