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

Best Oracle 1Z0-071 Practice Exams and Real Exam Simulations, 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
Which statement is true regarding the default behavior of the ORDER BY clause?
A. In a character sort, the values are case-sensitive
B. NULL values are not considered at all by the sort operation
C. Only those columns that are specified in the SELECT list can be used in the ORDER BY clause
D. Numeric values are displayed from the maximum to the minimum value if they have decimal positions
View answer
Correct Answer: B
Question #2
Which three statements are true regarding the SQL WHERE and HAVING clauses?
A. The HAVING clause conditions can have aggregating functions
B. The HAVING clause conditions can use aliases for the columns
C. The WHERE and HAVING clauses cannot be used together in a SQL statement
D. The WHERE clause is used to exclude rows before grouping data
E. The HAVING clause is used to exclude one or more aggregated results after grouping data
View answer
Correct Answer: AD
Question #3
Evaluate the following SQL statements that are issued in the given order: CREATE TABLE emp (emp_no NUMBER(2) CONSTRAINT emp_emp_no_pk PRIMARY KEY, ename VARCHAR2(15), salary NUMBER (8,2), mgr_no NUMBER(2) CONSTRAINT emp_mgr_fk REFERENCES emp(emp_no)); ALTER TABLE emp DISABLE CONSTRAINT emp_emp_no_pk CASCADE; ALTER TABLE emp ENABLE CONSTRAINT emp_emp_no_pk; What would be the status of the foreign key EMP_MGR_PK?
A. It would remain disabled and can be enabled only by dropping the foreign key constraint and recreating it
B. It would remain disabled and has to be enabled manually using the ALTER TABLE command
C. It would be automatically enabled and immediate
D. It would be automatically enabled and deferred
View answer
Correct Answer: B
Question #4
View the exhibits and examine the structures of the COSTS and PROMOTIONS tables. Evaluate the following SQL statement: SQL> SELECT prod_id FROM costs WHERE promo_id IN (SELECT promo_id FROM promotions WHERE promo_cost < ALL (SELECT MAX(promo_cost) FROM promotions GROUP BY (promo_end_date- promo_begin_date))); What would be the outcome of the above SQL statement?
A. It displays prod IDs in the promo with the lowest cost
B. It displays prod IDs in the promos with the lowest cost in the same time interval
C. It displays prod IDs in the promos with the highest cost in the same time interval
D. It displays prod IDs in the promos which cost less than the highest cost in the same time interval
View answer
Correct Answer: A
Question #5
You must write a query that prompts users for column names and conditions every time it is executed. (Choose the best answer.) The user must be prompted only once for the table name. Which statement achieves those objectives?
A. SELECT &col1, '&col2'FROM &tableWHERE &&condition = '&cond';
B. SELECT &col1, &col2 FROM "&table"WHERE &condition =&cond;
C. SELECT &col1, &col2 FROM &&tableWHERE &condition = &cond;
D. SELECT &col1, &col2 FROM &&tableWHERE &condition = &&cond
View answer
Correct Answer: C
Question #6
You issued the following command: SQL> DROP TABLE employees; Which three statements are true?
A. All uncommitted transactions are committed
B. All indexes and constraints defined on the table being dropped are also dropped
C. Sequences used in the employees table become invalid
D. The space used by the employees table is reclaimed immediately
E. The employees table can be recovered using the rollback command
F. The employees table is moved to the recycle bin
View answer
Correct Answer: CD
Question #7
Which three tasks can be performed using SQL functions built into Oracle Database?
A. displaying a date in a nondefault format
B. finding the number of characters in an expression
C. substituting a character string in a text expression with a specified string
D. combining more than two columns or expressions into a single column in the output
View answer
Correct Answer: D
Question #8
You must create a SALES table with these column specifications and data types: (Choose the best answer.) SALESID: Number STOREID: Number ITEMID: Number QTY: Number, should be set to 1 when no value is specified SLSDATE: Date, should be set to current date when no value is specified PAYMENT: Characters up to 30 characters, should be set to CASH when no value is specified Which statement would create the table?
A. CREATE TABLE Sales(SALESID NUMBER (4),STOREID NUMBER (4),ITEMID NUMBER (4),QTY NUMBER DEFAULT = 1,SLSDATE DATE DEFAULT SYSDATE,PAYMENT VARCHAR2(30) DEFAULT = "CASH");
B. CREATE TABLE Sales(SALESID NUMBER (4),STOREID NUMBER (4),ITEMID NUMBER (4),QTY NUMBER DEFAULT = 1,SLSDATE DATE DEFAULT 'SYSDATE',PAYMENT VARCHAR2(30) DEFAULT CASH);
C. CREATE TABLE Sales(SALESID NUMBER (4),STOREID NUMBER (4),ITEMID NUMBER (4),qty NUMBER DEFAULT = 1,SLSDATE DATE DEFAULT SYSDATE,PAYMENT VARCHAR2(30) DEFAULT = "CASH");
D. Create Table sales(salesid NUMBER (4),Storeid NUMBER (4),Itemid NUMBER (4),QTY NUMBER DEFAULT 1,Slsdate DATE DEFAULT SYSDATE,payment VARCHAR2(30) DEFAULT 'CASH');
View answer
Correct Answer: A
Question #9
Which task can be performed by using a single Data Manipulation Language (DML) statement?
A. adding a column constraint when inserting a row into a table
B. adding a column with a default value when inserting a row into a table
C. removing all data only from one single column on which a unique constraint is defined
D. removing all data only from one single column on which a primary key constraint is defined
View answer
Correct Answer: ADE
Question #10
Evaluate the following CRTEATE TABLE commands: CREATE_TABLE orders (ord_no NUMBER (2) CONSTRAINT ord_pk PRIMARY KEY, ord_date DATE, cust_id NUMBER (4) ); CREATE TABLE ord_items (ord _no NUMBER (2), item_no NUMBER(3), qty NUMBER (3) CHECK (qty BETWEEEN 100 AND 200), expiry_date date CHECK (expiry_date> SYSDATE), CONSTRAINT it_pk PRIMARY KEY (ord_no, item_no), CONSTARAINT ord_fk FOREIGN KEY (ord_no) REFERENCES orders (ord_no) ); Why would the ORD_ITEMS table not get created?
A. SYSDATE cannot be used with the CHECK constraint
B. The BETWEEN clause cannot be used for the CHECK constraint
C. The CHECK constraint cannot be placed on columns having the DATE data type
D. ORD_NO and ITEM_NO cannot be used as a composite primary key because ORD_NO is also the FOREIGN KEY
View answer
Correct Answer: ABC

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: