DON'T WANT TO MISS A THING?

Certification Exam Passing Tips

Latest exam news and discount info

Curated and up-to-date by our experts

Yes, send me the newsletter

Ace Oracle 1Z0-071 Certification Exam Questions & Study Resources, Oracle Database SQL | SPOTO

Prepare thoroughly for the Oracle Database SQL (1Z0-071) certification with SPOTO's comprehensive exam materials. Our platform offers a wide range of practice tests, free test sessions, and in-depth exam practice tools to help you succeed. Access an extensive collection of online exam questions, sample questions, and exam dumps, all designed to mirror the actual test environment. Our exam questions and answers provide detailed insights into Oracle SQL and PL/SQL technology, ensuring a robust understanding of the material. Whether you're an IT student eager to enhance your SQL database knowledge or a junior programmer aiming to secure Oracle certification, our mock exams are invaluable. Utilize our latest practice tests to build confidence and pass the certification exam, establishing a strong foundation for your future career progression.
Take other online exams

Question #1
Examine the structure of the MEMBERS table: NameNull?Type ------------------ --------------- ------------------------------ MEMBER_IDNOT NULLVARCHAR2 (6) FIRST_NAMEVARCHAR2 (50) LAST_NAMENOT NULLVARCHAR2 (50) ADDRESSVARCHAR2 (50) You execute the SQL statement: SQL > SELECT member_id, ' ' , first_name, ' ' , last_name "ID FIRSTNAME LASTNAME " FROM members; What is the outcome?
A. It fails because the alias name specified after the column names is invalid
B. It fails because the space specified in single quotation marks after the first two column names is invalid
C. It executes successfully and displays the column details in a single column with only the alias column heading
D. It executes successfully and displays the column details in three separate columns and replaces only the last column heading with the alias
View answer
Correct Answer: CD
Question #2
Examine the structure of the PROGRAMS table: Which two SQL statements would execute successfully?
A. SELECT NVL (ADD_MONTHS (END_DATE,1) SYSDATE) FROM programs;
B. SELECT TO_DATE (NVL (SYSDATE-END_DATE, SYSDATE)) FROM programs;
C. SELECT NVL (MONTHS_BETWEEN (start_date, end_date), ‘Ongoing’) FROM programs;
D. SELECT NVL (TO_CHAR (MONTHS_BETWEEN (start-date, end_date)), ‘Ongoing’) FROMprograms
View answer
Correct Answer: A
Question #3
Which two statements are true regarding the COUNT function?
A. A SELECT statement using the COUNT function with a DISTINCT keyword cannot have a WHERE clause
B. COUNT (DISTINCT inv_amt) returns the number of rows excluding rows containing duplicates and NULL values in the INV_AMT column
C. COUNT (cust_id) returns the number of rows including rows with duplicate customer IDs and NULL value in the CUST_ID column
D. COUNT (*) returns the number of rows including duplicate rows and rows containing NULL value in any of the columns
E. The COUNT function can be used only for CHAR, VARCHAR2, and NUMBER data types
View answer
Correct Answer: BD
Question #4
View the Exhibit and examine the structure of the EMPLOYEES and JOB_HISTORY tables. (Choose all that apply.) Examine this query which must select the employee IDs of all the employees who have held the job SA_MAN at any time during their employment. SELECT EMPLOYEE_ID FROM EMPLOYEES WHERE JOB_ID = 'SA_MAN' ------------------------------------- SELECT EMPLOYEE_ID FROM JOB_HISTORY WHERE JOB_ID = 'SA_MAN'; Choose two correct SET operators which would cause the query to return the desired result.
A. UNION
B. MINUS
C. INTERSECT
D. UNION ALL
View answer
Correct Answer: AD
Question #5
Evaluate this ALTER TABLE statement: (Choose the best answer.) ALTER TABLE orders SET UNUSED (order_date); Which statement is true?
A. After executing the ALTER TABLE command, a new column called ORDER_DATE can be added to the ORDERS table
B. The ORDER_DATE column must be empty for the ALTER TABLE command to execute successfully
C. ROLLBACK can be used to restore the ORDER_DATE column
D. The DESCRIBE command would still display the ORDER_DATE column
View answer
Correct Answer: A
Question #6
Which three statements are true regarding subqueries?
A. Multiple columns or expressions can be compared between the main query and subquery
B. Subqueries can contain ORDER BY but not the GROUP BY clause
C. Main query and subquery can get data from different tables
D. Subqueries can contain GROUP BY and ORDER BY clauses
E. Main query and subquery must get data from the same tables
F. Only one column or expression can be compared between the main query and subquery
View answer
Correct Answer: ACD
Question #7
View the Exhibit and examine the structure of the CUSTOMERS and CUST_HISTORY tables. The CUSTOMERS table contains the current location of all currently active customers. The CUST_HISTORY table stores historical details relating to any changes in the location of all current as well as previous customers who are no longer active with the company. You need to find those customers who have never changed their address. Which SET operator would you use to get the required output?
A. INTERSECT
B. UNION ALL
C. MINUS
D. UNION
View answer
Correct Answer: C
Question #8
View the Exhibit and examine the structure of the ORDERS table. Which UPDATE statement is valid?
A. UPDATE ordersSET order_date = ’12-mar-2007’,order_total IS NULLWHERE order_id = 2455;
B. UPDATE ordersSET order_date = ’12-mar-2007’,AND order_total = TO_NUMBER(NULL)WHERE order_id = 2455;
C. UPDATE ordersSET order_date = ’12-mar-2007’,order_total = NULLWHERE order_id = 2455;
D. UPDATE ordersSET order_date = TO_DATE(’12-mar-2007’,’dd-mon-yyyy’),SET order_total = TO_NUMBER (NULL)WHERE order_id = 2455;
View answer
Correct Answer: C
Question #9
Which two statements are true about sequences created in a single instance database? (Choose two.)
A. When the MAXVALUE limit for the sequence is reached, you can increase the MAXVALUE limit by using the ALTER SEQUENCE statement
B. DELETE would remove a sequence from the database
C. The numbers generated by a sequence can be used only for one table
D. CURRVAL is used to refer to the last sequence number that has been generated
E. When a database instance shuts down abnormally, the sequence numbers that have been cached but not used would be available once again when the database instance is restarted
View answer
Correct Answer: A
Question #10
You want to display the date for the first Monday of the next month and issue the following command: SQL>SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "is the first Monday for" fmmonth rrrr') FROM DUAL; What is the outcome?
A. In generates an error because rrrr should be replaced by rr in the format string
B. It executes successfully but does not return the correct result
C. It executes successfully and returns the correct result
D. In generates an error because TO_CHAR should be replaced with TO_DATE
E. In generates an error because fm and double quotation marks should not be used in the format string
View answer
Correct Answer: AD
Question #11
View the exhibit and examine the description of the DEPARTMENTS and EMPLOYEES tables. The retrieve data for all the employees for their EMPLOYEE_ID, FIRST_NAME, and DEPARTMENT NAME, the following SQL statement was written: SELECT employee_id, first_name, department_name FROM employees NATURAL JOIN departments; The desired output is not obtained after executing the above SQL statement. What could be the reason for this?
A. The table prefix is missing for the column names in the SELECT clause
B. The NATURAL JOIN clause is missing the USING clause
C. The DEPARTMENTS table is not used before the EMPLOYEES table in the FROM clause
D. The EMPLOYEES and DEPARTMENTS tables have more than one column with the same column name and data type
View answer
Correct Answer: D

View Answers after Submission

Please submit your email and WhatsApp to get the answers of questions.

Note: Please make sure your email ID and Whatsapp are valid so that you can get the correct exam results.

Email:
Whatsapp/phone number: