Join the discussion
Question 1/168
View the exhibit and examine the data in ORDERS_MASTERand MONTHLY_ORDERStables.

Evaluate the following MERGEstatement:
MERGE_INTO orders_master o
USING monthly_orders m
ON (o.order_id = m.order_id)
WHEN MATCHED THEN
UPDATE SET o.order_total = m.order_total
DELETE WHERE (m.order_total IS NULL)
WHEN NOT MATCHED THEN
INSERT VALUES (m.order_id, m.order_total)
What would be the outcome of the above statement?

Evaluate the following MERGEstatement:
MERGE_INTO orders_master o
USING monthly_orders m
ON (o.order_id = m.order_id)
WHEN MATCHED THEN
UPDATE SET o.order_total = m.order_total
DELETE WHERE (m.order_total IS NULL)
WHEN NOT MATCHED THEN
INSERT VALUES (m.order_id, m.order_total)
What would be the outcome of the above statement?
Correct Answer: B
Explanation/Reference:
References:
https://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9016.htm
References:
https://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9016.htm
Add Comments
- Other Question (168q)
- Q1. View the exhibit and examine the data in ORDERS_MASTERand MONTHLY_ORDERStables. (Exhibit) ...
- Q2. View the exhibit and examine the descriptions of the DEPT and LOCATIONS tables. (Exhibit) ...
- Q3. Examine the description of the EMPLOYEEStable: (Exhibit) Which query is valid?...
- Q4. The PRODUCTStable has the following structure. (Exhibit) Evaluate the following two SQL st...
- Q5. Which two statements are true regarding the SQL GROUP BY clause? (Choose two.)...
- Q6. View the Exhibit and examine PRODUCTS and ORDER_ITEMS tables. You executed the following q...
- Q7. View the Exhibit and examine the structure in the DEPARTMENTS tables. (Choose two.) (Exhib...
- Q8. Sales data of a company is stored in two tables, SALES1and SALES2, with some data being du...
- Q9. Examine this list of requirements for a sequence: 1. Name:EMP_SEQ 2. First value returned:...
- Q10. Examine the structure of the BOOKS_TRANSACTIONS table: (Exhibit) Examine the SQL statement...
- Q11. Which two statements are true regarding the WHERE and HAVING clauses in a SELECT statement...
- Q12. The BOOKS_TRANSACTIONS table exists in your schema in this database. You execute this SQL ...
- Q13. Evaluate the following SQL statement: (Exhibit) Which statement is true regarding the outc...
- Q14. Examine this statement: (Exhibit) What is returned upon execution?...
- Q15. Examine the data in the INVOICES table: (Exhibit) Examine the data in the CURRENCIES table...
- Q16. You need to display the date 11-oct-2007 in words as 'Eleventh of October, Two Thousand Se...
- Q17. Examine the data in the NEW_EMPLOYEES table: (Exhibit) Update existing employee details in...
- Q18. Which statement is true about transactions?
- Q19. Which statement is true regarding the INTERSECT operator?...
- Q20. Evaluate the following SQL statement: SQL> select cust_id, cust_last_name "Last name" F...
- Q21. Examine this description of the PRODUCTS table: (Exhibit) You successfully execute this co...
- Q22. View the Exhibit and examine the structure of the BOOKStable. (Exhibit) The BOOKS table co...
- Q23. Evaluate these commands which execute successfully: (Exhibit) Which two statements are tru...
- Q24. Which two statements are true regarding constraints? (Choose two.)...
- Q25. You issued this command: (Exhibit) Which three statements are true?...
- Q26. View the Exhibit and examine the structure of the PRODUCTStable (Exhibit) Which two tasks ...
- Q27. In the EMPLOYEES table there are 1000 rows and employees are working in the company for mo...
- Q28. View the exhibit and examine the description of the PRODUCT_INFORMATIONtable. (Exhibit) Wh...
- Q29. View the Exhibit and examine the structure of the CUSTOMERStable. (Exhibit) CUSTOMER_VUis ...
- Q30. View the Exhibit and examine PRODUCTS and ORDER_ITEMS tables. (Exhibit) You executed the f...
- Q31. View the exhibit and examine the structures of the EMPLOYEES and DEPARTMENTS tables. EMPLO...
- Q32. Evaluate the following ALTER TABLEstatement: ALTER TABLE orders SET UNUSED (order_date); W...
- Q33. Examine the description of the CUSTOMERS table: (Exhibit) You want to display details of a...
- Q34. Examine the description of the EMPLOYEEStable: (Exhibit) Which query is valid?...
- Q35. Examine the structure proposed for the TRANSACTIONS table: (Exhibit) Which two statements ...
- Q36. Examine the structure of the BOOKS_TRANSACTIONS table: Examine the SQL statement: Which st...
- Q37. Examine this Statement which returns the name of each employee and their manager, SELECT e...
- Q38. The user SCOTT who is the owner of ORDERS and ORDER_ITEMS tables issues the following GRAN...
- Q39. Examine the data in the ENPLOYEES table: (Exhibit) Which statement will compute the total ...
- Q40. View the exhibit and examine the data in the PROJ_TASK_DETAILS table. (Choose the best ans...
- Q41. The ORDERS table has a primary key constraint on the ORDER_ID column. The ORDER_ITEMS tabl...
- Q42. View the Exhibit and examine the structure of the CUSTOMERS table. (Exhibit) Evaluate the ...
- Q43. Which three statements are true about multiple-row subqueries? (Choose three.)...
- Q44. Which three statements are true about the Oracle join and ANSI Join syntax?...
- Q45. You need to list the employees in DEPARTMENT_ID20 days in a single row, ordered by HIRE_DA...
- Q46. Examine the description of the EMPLOYEES table: (Exhibit) Which query is valid?...
- Q47. In the customers table, the CUST_CITY column contains the value 'Paris' for the CUST_FIRST...
- Q48. View the Exhibit and examine the data in the PROMOTIONS table. (Exhibit) PROMO_BEGIN_DATE ...
- Q49. Evaluate the following SELECTstatement and view the exhibit to examine its output: SELECT ...
- Q50. Examine this SELECT statement and view the Exhibit to see its output: (Exhibit) SELECT con...
- Q51. View the Exhibit and examine the structure of ORDERS and ORDER_ITEMS tables. ORDER__ID is ...
- Q52. View the Exhibit and examine the structure of the ORDERS table. The ORDER_ID column is the...
- Q53. Examine the command to create the BOOKS table. (Exhibit) The BOOK_ID value 101 does not ex...
- Q54. Which statement adds a column called SALARY to the EMPLOYEES table having 100 rows, which ...
- Q55. View the Exhibit and examine the description of the ORDERS table. (Choose two.) (Exhibit) ...
- Q56. You need to display the first names of all customers from the CUSTOMERS table that contain...
- Q57. Examine the structure of the INVOICE table. NameNull?Type --------------------------------...
- Q58. Examine the structure of the INVOICEtable. Name Null? Type - ----------------- -----------...
- Q59. Examine this partial statement: SELECT ename, sal,comm FROM emp Now examine this output: (...
- Q60. Examine the description of the PRODUCT_INFORMATION table: (Exhibit)...
- Q61. View the Exhibit and examine the structure of the CUSTOMERS table. (Exhibit) Evaluate the ...
- Q62. Table ORDER_ITEMS contains columns ORDER_TO, UNIT_PRICE and QUANTITY, of data type NUMBER....
- Q63. You must create a table EMPLOYEES in which the values in the columns EMPLOYEES_ID and LOGI...
- Q64. Which three statements are true about the DESCRIBEcommand? (Choose three.)...
- Q65. View the Exhibit and examine the structure in the EMPLOYEES tables. (Exhibit) Evaluate the...
- Q66. Sales data of a company is stored in two tables, SALES1 and SALES2, with some data being d...
- Q67. Examine the structure of the EMPLOYEEStable. (Exhibit) There is a parent/child relationshi...
- Q68. Examine the description of the BOOKS_TRANSACTIONS table: (Exhibit) Examine this partial SQ...
- Q69. Which statement is true regarding external tables?...
- Q70. Examine this description of the PRODUCTS table: (Exhibit) You successfully execute this co...
- Q71. Examine the description of the CUSTOMERS table: (Exhibit) You want to display details of a...
- Q72. View the Exhibit and examine the structure of the PRODUCT_INFORMATIONtable. (Exhibit) You ...
- Q73. View the Exhibit and examine the structure of ORDERS and CUSTOMERS tables. (Choose the bes...
- Q74. View the exhibit and examine the structure of the EMPLOYEES table. (Exhibit) You want to s...
- Q75. You want to display 5 percent of the rows from the sales table for products with the lowes...
- Q76. Examine the command to create the BOOKS table. SQL> create table books(book id CHAR(6) ...
- Q77. Which two statements are true about conditional INSERT ALL?...
- Q78. View the Exhibits and examine the structure of the costs and promotions tables. You want t...
- Q79. Examine the description of the EMPLOYEES table: (Exhibit) Examine this query: (Exhibit) Wh...
- Q80. View and Exhibit and examine the structure and data in the INVOICE table. (Exhibit) Which ...
- Q81. You issue this command which succeeds: SQL> DROP TABLE products; Which three statements...
- Q82. View the Exhibit and examine the structure of the PORDUCT_INFORMATION table. (Choose the b...
- Q83. The first DROP operation is performed on PRODUCTS table using this command: DROP TABLE pro...
- Q84. You must find the number of employees whose salary is lower than employee 110. Which state...
- Q85. Examine the types and examples of relationship that follow: 1 One-to-one a) teacher to Stu...
- Q86. Choose the best answer. Examine the description of the EMPLOYEES table: (Exhibit) Which qu...
- Q87. SCOTT is a user in the database. Evaluate the commands issued by the DBA: (Exhibit) Which ...
- Q88. You own table DEPARTMENTS, referenced by views, indexes, and synonyms. Examine this comman...
- Q89. Which statement is true about transactions?
- Q90. Examine the description of the EMPLOYEES table: (Exhibit) Which statement increases each e...
- Q91. Which two statements are true about views?
- Q92. Which two are true about granting privileges on objects?...
- Q93. View the Exhibit and examine the structure of ORDERS and ORDER_ITEMS tables. ORDER_ID is t...
- Q94. Which statement is true regarding the UNION operator?...
- Q95. View the Exhibit and examine the structure in the DEPARTMENTS tables. (Choose two.) (Exhib...
- Q96. Which three statements are correct regarding indexes? (Choose three.)...
- Q97. Evaluate the following SQL statement: SELECT product_name || 'it's not available for order...
- Q98. Examine the description of the TRANSACTIONS table: (Exhibit) Which two SQL statements exec...
- Q99. View the exhibit and examine the structure of the EMPLOYEEStable. (Exhibit) You want to di...
- Q100. View the Exhibit and examine the structure of CUSTOMERS table. Using the CUSTOMERS table, ...
- Q101. View the Exhibit and examine the structure in the DEPARTMENTS tables. (Choose two.) (Exhib...
- Q102. View the Exhibit and examine the structure of the PRODUCTS table. Which two tasks require ...
- Q103. View the Exhibit and examine the details of the PRODUCT_INFORMATION table. (Exhibit) Evalu...
- Q104. MANAGER is an existing role with no privileges or roles. EMP is an existing role containin...
- Q105. Examine the structure of the members table: (Exhibit) What is the outcome?...
- Q106. View the Exhibit and examine the structure of CUSTOMERS table. (Exhibit) Evaluate the foll...
- Q107. Which three statements are true about sequences in a single instance Oracle database? (Cho...
- Q108. Examine the structure of the EMPLOYEEStable. Name Null? Type - ---------------- ----- ----...
- Q109. Examine this statement which executes successfully: Which statement will violate the CHECK...
- Q110. View the Exhibit and examine the structure of ORDER_ITEMS and ORDERS tables. (Exhibit) You...
- Q111. Examine this partial command: (Exhibit) Which two clauses are required for this command to...
- Q112. Which two statements about INVISIBLE indexes are true?...
- Q113. Which two statements are true about the COUNT function?...
- Q114. Which three tasks can be performed using SQL functions built into Oracle Database? (Choose...
- Q115. Evaluate the following CREATE TABLE commands: CREATE_TABLE orders ( ord_no NUMBER (2) CONS...
- Q116. Which statements are correct regarding indexes? (Choose all that apply.)...
- Q117. Table ORDER_ITEMS contains columns ORDER_ID, UNIT_PRICE and QUANTITY, of data type NUMBER ...
- Q118. View the Exhibit and examine the structure of the PRODUCTtable. (Exhibit) Which two tasks ...
- Q119. You need to calculate the number of days from 1st January 2019 until today. Dates are stor...
- Q120. Examine these statements executed in a single Oracle session: (Exhibit) Which three statem...
- Q121. Evaluate this query: SQL> SELECT TRUNC(ROUND(156.00,-1),-1) FROM DUAL; What will be the...
- Q122. View the Exhibit and examine the structure of the SALESand PRODUCTStables. (Choose two.) (...
- Q123. Which statement executes successfully?
- Q124. Which three statements are correct regarding indexes? (Choose three.)...
- Q125. Examine these SQL statements which execute successfully: (Exhibit) Which two statements ar...
- Q126. View the exhibit and examine the description of the EMPLOYEES table. (Choose two.) (Exhibi...
- Q127. Which three statements are true about time zones, date data types, and timestamp data type...
- Q128. Examine the description of the PROMOTIONStable: (Exhibit) You want to display the unique p...
- Q129. Evaluate the following statement. (Exhibit) Which statement is true regarding the evaluati...
- Q130. View the exhibits and examine the structures of the COSTS and PROMOTIONS tables. Evaluate ...
- Q131. Which two statements are true regarding roles? (Choose two.)...
- Q132. Examine the structure of the ORDERStable: (Exhibit) You want to find the total value of al...
- Q133. Evaluate the following SQL statement: SQL> select cust_id, cust_last_name "Last name" F...
- Q134. Which two statements are true regarding the EXISTSoperator used in the correlated subqueri...
- Q135. View the Exhibit and examine the description of the ORDERS table. (Choose two.) Which two ...
- Q136. View the Exhibit and examine the data in the PRODUCTStable. (Exhibit) Which statement woul...
- Q137. View the exhibit and examine the structure of the CUSTOMERStable. (Exhibit) Which two task...
- Q138. View the exhibit and examine the data in ORDERS_MASTERand MONTHLY_ORDERStables. (Exhibit) ...
- Q139. Examine this statement: SELECT cust_id, cust^last_ndma "Last Name" FROM customers WHERE co...
- Q140. Which three statements are true regarding subqueries? (Choose three.)...
- Q141. View the exhibit and examine the structure of ORDERSand CUSTOMERStables. (Exhibit) Which I...
- Q142. View the Exhibits and examine PRODUCTS and SALES tables. Exhibit 1 (Exhibit) Exhibit 2 (Ex...
- Q143. Examine the commands used to create DEPARTMENT_DETAILS and COURSE_DETAILS tables: You want...
- Q144. View the Exhibit and examine the description of the ORDERS table. (Exhibit) Which two WHER...
- Q145. Which three statements are correct regarding indexes? (Choose three.)...
- Q146. View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tab...
- Q147. Examine the description of the PRODUCT_ STATUS table: (Exhibit) The STATUS column contains...
- Q148. View the Exhibit and examine the structure of the PRODUCT_INFORMATIONand INVENTORIEStables...
- Q149. View the Exhibit and examine the structure of the SALES and PRODUCTS tables. (Choose two.)...
- Q150. Examine this statement: (Exhibit) Which two things must be changed for it to execute succe...
- Q151. Examine the description of the EMPLOYEES table: (Exhibit) Which statement will execute suc...
- Q152. You executed the following CREATE TABLE statement that resulted in an error: SQL> CREAT...
- Q153. You want to display the date for the first Monday of the next month and issue the followin...
- Q154. Examine the structure of the MEMBERS table: (Choose the best answer.) (Exhibit) Examine th...
- Q155. Examine the description of the CUSTOMERS table: Which three statements will do an implicit...
- Q156. Examine thee statements which execute successfully: CREATE USER finance IDENTIFIED BY pwfi...
- Q157. Examine the business rule: Each student can work on multiple projects and each project can...
- Q158. Which two statements are true about outer Joins?...
- Q159. In which three situations does a transaction complete? (Choose three.)...
- Q160. Examine the description of the PRODCTS table which contains data: (Exhibit) Which two are ...
- Q161. Examine this description of the EMP table: (Exhibit) You execute this query: SELECT deptno...
- Q162. Examine the business rule: Each student can work on multiple projects and each project can...
- Q163. Whith three statements are true about built in data types?...
- Q164. Examine these SQL statements that are executed in the given order: (Exhibit) What will be ...
- Q165. Examine these statements executed in a single Oracle session: (Exhibit) Which three statem...
- Q166. Use HR has CREATE SESSION, CREATE ANY TABLE and UNLIMITED TABLESPACE privileges. User SCOT...
- Q167. Which two statements are true about substitution variables?...
- Q168. Which two statements are true about INTERVAL data types?...
