题目内容

You need to load information about new customers from the NEW_CUST table into the tables CUST and CUST_SPECIAL. If a new customer has a credit limit greater than 10,000, then the details have to be inserted into CUST_SPECIAL. All new customer details have to be inserted into the CUST table. Which technique should be used to load the data most efficiently?

A. external table
B. the MERGE command
C. the multitable INSERT command
D. INSERT using WITH CHECK OPTION

查看答案
更多问题

Evaluate the following SQL statement: ALTER TABLE hr.emp SET UNUSED (_id); Which statement is true regarding the effect of the above SQL statement?

Any synonym existing on the EMP table would have to be recreated.
B. Any constraints defined on the MGR_ID column would be removed by the above command.
C. Any views created on the EMP table that include the MGR_ID column would have to be dropped and recreated.
D. Any index created on the MGR_ID column would continue to exist until the DROP UNUSED COLUMNS command is executed.

In which scenario would you use the ROLLUP operator for expression or columns within a GROUP BY clause?

A. to find the groups forming the subtotal in a row
B. to create group wise grand totals for the groups specified within a GROUP BY clause
C. to create a grouping for expressions or columns specified within a GROUP BY clause in one direction, from right to left for calculating the subtotals
D. to create a grouping for expressions or columns specified within a GROUP BY clause in all possible directions, which is cross tabular report for calculating the subtotals

Which two statements are true regarding the execution of the correlated subqueries?(Choose two.) (10分)

A. The nested query executes after the outer query returns the row.
B. The nested query executes first and then the outer query executes.
C. The outer query executes only once for the result returned by the inner query.
D. Each row returned by the outer query is evaluated for the results returned by the inner query.

OE and SCOTT are the users in the database. The ORDERS table is own by OE. Evaluate the statements issued by the DBA in the following sequence: CREATE ROLE RI; GRANT SELECT, INSERT ON oe.orders TO RI; GRANT RI TO scott; GRANT SELECT ON oe.orders TO scott; REVOKE SELECT ON oe.orders FROM scott; What would be the outcome after executing the statements?

A. SCOTT would be able to query the OE.ORDERS table.
B. SCOTT would not be able to query the OE.ORDERS table.
C. The REVOKE statement would remove the SELECT privilege from SCOTT as well as from the role RI.
D. The REVOKE statement would give an error because the SELECT privilege has been granted to the role RI.

答案查题题库