Question 101 · 238 in bank
Select 2Which two statements are true about the results of using the INTERSECT operator in compound queries? (Choose two.)
Show answer
Answer: BD
Oracle Database SQL238 questions across 24 pages are complete and free, with no account or card.
238 questions in this bank
Free access · progress saved on this device
Which two statements are true about the results of using the INTERSECT operator in compound queries? (Choose two.)
Answer: BD
Examine the description of the PRODUCTS table:
Which three queries use valid expressions? (Choose three.)
Answer: BCF
BCF The three queries that use valid expressions are: B. SELECT product_id, (unit_price * 0.15 / (4.75 + 552.25)) FROM products; C. SELECT product_id, (expiry_date - delivery_date) * 2 FROM products; F. SELECT product_id, unit_price, unit_price + surcharge FROM products; Explanation: A. This query is invalid because the alias "S" is not defined anywhere in the query. B. This query is valid. It calculates a value based on the unit price of each product using a mathematical expression. C. This query is valid. It calculates the difference between the expiry date and delivery date for each product and multiplies it by 2. D. This query is invalid because the alias "discount" is not defined anywhere in the query. E. This query is invalid because you cannot multiply a date value by a number. F. This query is valid. It selects the product ID, unit price, and the sum of the unit price and surcharge for each product.
Source: Adapted from community discussion — fantastic_side_eye
Examine this partial command:
Which two clauses are required for this command to execute successfully? (Choose two.)
Answer: BD
TYPE: "Oracle Database provides two access drivers: ORACLE_LOADER and ORACLE_DATAPUMP. If you omit the TYPE specification, ORACLE_LOADER is the default access driver." https://docs.oracle.com/cd/B28359_01/server.111/b28310/tables013.htm#ADMIN11705 ACCESS PARAMETERS: "To modify the default behavior of the access driver for external tables, specify access parameters." https://docs.oracle.com/en/database/oracle/oracle-database/23/sutil/oracle-external-tables-concepts.html#GUID-ACF1D3AA-1D61-4682-AEC5-42C944756E12 REJECT LIMIT : there are several examples that don't use this clause LOCATION: "For ORACLE_HIVE, the LOCATION clause is not used." https://docs.oracle.com/en/database/oracle/oracle-database/23/sutil/oracle-external-tables-concepts.html#GUID-ACF1D3AA-1D61-4682-AEC5-42C944756E12 That about LOCATION confuse me, but I tend to believe it's a very particular case, so the answer should be (BD) DEFAULT DIRECTORY and LOCATION
Source: Adapted from community discussion — J4vi
Examine these statements:
Which is true about modifying the columns in ALTER_TEST?
Answer: E
E Correct. create table a_test (c1 VARCHAR2(10), c2 NUMBER(10)); insert into a_test values ('123', 123); select * from a_test; commit; alter table a_test modify c1 VARCHAR2(5); alter table a_test modify c2 NUMBER(12,2); desc a_test; if alter table a_test modify c1 VARCHAR2(2); ORA-01441: cannot decrease column length because some value is too big
Source: Adapted from community discussion — WingL
You and your colleague Andrew have these privileges on the EMPLOYEE_RECORDS table: 1. SELECT 2. INSERT 3. UPDATE 4. DELETE You connect to the database instance and perform an update to some of the rows in EMPLOYEE_RECORDS, but do not commit yet. Andrew connects to the database instance and queries the table. No other users are accessing the table. Which two statements are true at this point? (Choose two.)
Answer: AE
Which two statements cause changes to the data dictionary? (Choose two.)
Answer: CE
Examine the description of the ORDERS table:
Examine the description of the INVOICES table:
Which three statements execute successfully? (Choose three.)
Answer: CDE
CDE CORRECT. PLEASE HAVE A TRY: CREATE TABLE ORDERS_01 ( ORDER_ID NUMBER(38), ORDER_DATE DATE ); CREATE TABLE INVOICES_01 ( INVOICE_ID NUMBER(38), INVOICE_DATE DATE ); SELECT * FROM ORDERS_01 ORDER BY order_id INTERSECT SELECT * FROM INVOICES_01 ORDER BY invoice_id; SELECT * FROM ORDERS_01 UNION ALL SELECT * FROM INVOICES_01 ORDER BY ORDER_ID; SELECT order_id, order_date FROM ORDERS_01 UNION ALL SELECT invoice_id, invoice_date FROM INVOICES_01 ORDER BY order_id; SELECT * FROM ORDERS_01 MINUS SELECT * FROM INVOICES_01 ORDER BY 1; SELECT order_id invoice_id, order_date FROM ORDERS_01 MINUS SELECT invoice_id, invoice_date FROM INVOICES_01 ORDER BY invoice_id; SELECT * FROM ORDERS_01 ORDER BY order_id UNION SELECT * FROM INVOICES_01; SELECT order_id, order_date FROM ORDERS_01 INTERSECT SELECT invoice_id, invoice_date FROM INVOICES_01 ORDER BY invoice_id;
Source: Adapted from community discussion — WingL
Examine the description of the PRODUCT_INFORMATION table:
Which query retrieves the number of products with a null list price?
Answer: A
Examine this partial statement:
Which is true?
Answer: D
The ORDERS table has a primary key constraint on the ORDER_ID column. The ORDER_ITEMS table has a foreign key constraint on the ORDER_ID column, referencing the primary key of the ORDERS table. The constraint is defined with ON DELETE CASCADE. There are rows in the ORDERS table with an ORDER_TOTAL of less than 1000. Which three DELETE statements execute successfully? (Choose three.)
Answer: BDE
The question asks which ones: "execute successfully" it executes and successfully, there is nothing saying the condition except in other alternativas.
Source: Adapted from community discussion — mrcsp
Keyboard:J Kmove between questionsA–Dselect an answerRshow or hide the answer← →change page
1Z0-071 practice, question 101. 238 questions available.
Version 1.0.0. How we source questions