We provide oracle database 12c sql fundamentals 1z0 061 pdf free download which are the best for clearing 1Z0-061 test, and to get certified by Oracle Oracle Database 12c SQL Fundamentals. The 1z0 061 dumps covers all the knowledge points of the real 1Z0-061 exam. Crack your Oracle 1Z0-061 Exam with latest dumps, guaranteed!
Oracle 1Z0-061 Free Dumps Questions Online, Read and Test Now.
NEW QUESTION 1
Evaluate the SQL statement: TRUNCATE TABLE DEPT;
Which three are true about the SQL statement? (Choose three.)
Answer: ADF
Explanation: A: The TRUNCATE TABLE Statement releases storage space used by the table, D: Can not rollback the deletion of rows after the statement executes,
F: You must be the owner of the table or have DELETE ANY TABLE system privilege to truncate the DEPT table.
Incorrect
C- is not true
D- is not true
E- is not true
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 8-18
NEW QUESTION 2
View the Exhibit and examine the structure and data in the INVOICE table.
Which two statements are true regarding data type conversion in expressions used in queries?
Answer: DE
Explanation: In some cases, the Oracle server receives data of one data type where it expects data of a different data type.
When this happens, the Oracle server can automatically convert the data to the expected data type. This data type conversion can be done implicitly by the Oracle server or explicitly by the user.
Explicit data type conversions are performed by using the conversion functions. Conversion functions convert a value from one data type to another. Generally, the form of the function names follows the convention data type TO data type. The first data type is the input data type and the second data type is the output.
Note: Although implicit data type conversion is available, it is recommended that you do the explicit data type conversion to ensure the reliability of your SQL statements.
NEW QUESTION 3
View the Exhibit and examine the structure of the CUSTOMERS table.
Evaluate the query statement:
What would be the outcome of the above statement?
Answer: A
NEW QUESTION 4
Which object privileges can be granted on a view?
Answer: D
Explanation: Object privilege on VIEW is DELETE, INSERT, REFERENCES, SELECT and UPDATE.
Incorrect
A- Object privilege on VIEW is DELETE, INSERT, REFERENCES, SELECT and UPDATE
B- Object privilege on VIEW is DELETE, INSERT, REFERENCES, SELECT and UPDATE
C- Object privilege on VIEW is DELETE, INSERT, REFERENCES, SELECT and UPDATE Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 13-12
NEW QUESTION 5
Examine the statement:
GRANT select, insert, update ON student_grades
TO manager
WITH GRANT OPTION;
Which two are true? (Choose two.)
Answer: BE
Explanation: GRANT ROLE to ROLE/USER
Incorrect
A- Role can be grant to user
C- Create table privilege is not granted
D- Execute privilege is not granted
F- Delete privilege is not granted
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 13-15
NEW QUESTION 6
View the Exhibit and examine the structure of the promotions table.
Evaluate the following SQL statement:
Which statement is true regarding the outcome of the above query?
Answer: A
NEW QUESTION 7
Examine these statements:
CREATE ROLE registrar;
GRANT UPDATE ON student_grades TO registrar; GRANT registrar to user1, user2, user3;
What does this set of SQL statements do?
Answer: C
Explanation: the statement will create a role call REGISTRAR, grant UPDATE on student_grades to registrar, grant the role to user1, user2 and user3.
Incorrect:
A- the statement does not contain error
B- there is no MODIFY privilege
D- statement does not create 3 users with the role
E- privilege is grant to role then grant to user
F- privilege is grant to role then grant to user
NEW QUESTION 8
What is true of using group functions on columns that contain NULL values?
Answer: A
Explanation: group functions on column ignore NULL values
Incorrect
B- group functions on column ignore NULL values
C- group functions on column ignore NULL values
D- NVL function can be use for column with NULL values
E- no such INC_NULLS keyword
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 5-12
NEW QUESTION 9
Which statements are true regarding the FOR UPDATE clause in a SELECT statement? (Choose all that apply.)
Answer: BD
Explanation: FOR UPDATE Clause in a SELECT Statement
Locks the rows in the EMPLOYEES table where job_id is SA_REP. Lock is released only when you issue a ROLLBACK or a COMMIT.
If the SELECT statement attempts to lock a row that is locked by another user, the database waits until the row is available, and then returns the results of the SELECT statement.
FOR UPDATE Clause in a SELECT Statement
When you issue a SELECT statement against the database to query some records, no locks are placed on the selected rows. In general, this is required because the number of records locked at any given time is (by default) kept to the absolute minimum: only those records that have been changed but not yet committed are locked. Even then, others will be able to read those records as they appeared before the change (the “before image” of the data). There are times, however, when you may want to lock a set of records even before you change them in your program.
Oracle offers the FOR UPDATE clause of the SELECT statement to perform this locking. When you issue a SELECT...FOR UPDATE statement, the relational database management system (RDBMS) automatically obtains exclusive row-level locks on all the rows identified by the SELECT statement, thereby holding the records “for your changes only.” No one else will be able to change any of these records until you perform a ROLLBACK or a COMMIT.
You can append the optional keyword NOWAIT to the FOR UPDATE clause to tell the Oracle server not to wait if the table has been locked by another user. In this case, control will be returned immediately to your program or to your SQL Developer environment so that you can perform other work, or simply wait for a period of time before trying again. Without the NOWAIT clause, your process will block until the table is available, when the locks are released by the other user through the issue of a COMMIT or a ROLLBACK command.
NEW QUESTION 10
Examine the structure of the transactions table:
You want to display the date, time, and transaction amount of transactions that where done before 12 noon. The value zero should be displayed for transactions where the transaction amount has not been entered.
Which query gives the required result?
Answer: B
NEW QUESTION 11
Which describes the default behavior when you create a table?
Answer: C
Explanation: Sorted by highest to lowest is DESCENDING order
Incorrect
A- grant the table privilege to PUBLIC
B- login as sysoper
D- login as DBA or sysdba
E- no such option is allow.
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 9-9
NEW QUESTION 12
A UNIQUE constraint on a column requires an index.
Which of the following scenarios is correct? (Choose one or more correct answers.)
Answer: AB
NEW QUESTION 13
Examine the structure and data of the CUST_TRANS table:
Dates are stored in the default date format dd-mon-rr in the CUST_TRANS table. Which three SQL statements would execute successfully?
Answer: ACD
NEW QUESTION 14
Evaluate the following query:
SELECT INTERVAL '300' MONTH, INTERVAL '54-2' YEAR TO MONTH,
INTERVAL '11:12:10.1234567' HOUR TO SECOND
FROM dual;
What is the correct output of the above query?
Answer: A
Explanation: Datetime Data Types
You can use several datetime data types:
INTERVAL YEAR TO MONTH
Stored as an interval of years and months INTERVAL DAY TO SECOND
Stored as an interval of days, hours, minutes, and seconds
NEW QUESTION 15
You need to produce a report where each customer's credit limit has been incremented by
$1000. In the output, the customer's last name should have the heading Name and the incremented credit limit should be labeled New Credit Limit. The column headings should have only the first letter of each word in uppercase.
Which statement would accomplish this requirement?
Answer: C
Explanation: A column alias:
- Renames a column heading
- Is useful with calculations
- Immediately follows the column name (There can also be the optional AS keyword between the column name and the alias.)
- Requires double quotation marks if it contains spaces or special characters, or if it is case
sensitive.
NEW QUESTION 16
You are currently located in Singapore and have connected to a remote database in Chicago. You issue the following command:
Exhibit:
PROMOTIONS is the public synonym for the public database link for the PROMOTIONS table.
What is the outcome?
Answer: A
NEW QUESTION 17
The PRODUCTS table has the following structure:
Evaluate the following two SQL statements:
Which statement is true regarding the outcome?
Answer: B
Explanation: Using the NVL2 Function
The NVL2 function examines the first expression. If the first expression is not null, the NVL2 function returns the second expression. If the first expression is null, the third expression is returned.
Syntax
NVL2(expr1, expr2, expr3) In the syntax:
Expr1 is the source value or expression that may contain a null
Expr2 is the value that is returned if expr1 is not null Expr3 is the value that is returned if expr1 is null
NEW QUESTION 18
Examine the structure of the employees table.
You want to display the maximum and minimum salaries of employees hired 1 year ago. Which two statements would get the correct output?
Answer: AC
Explanation: Incorrect:
Not B, not D: You cannot use a GROUP BY clause in a WHERE statement.
NEW QUESTION 19
View the Exhibit and examine the structure of the customers table.
NEW_CUSTOMERS is a new table with the columns CUST_ID, CUST_NAME and CUST_CITY that have the same data types and size as the corresponding columns in the customers table.
Evaluate the following insert statement:
The insert statement fails when executed. What could be the reason?
Answer: A
Explanation: Copying Rows from Another Table
Write your INSERT statement with a subquery: Do not use the VALUES clause.
Match the number of columns in the INSERT clause to those in the subquery. Inserts all the rows returned by the subquery in the table, sales_reps.
Recommend!! Get the Full 1Z0-061 dumps in VCE and PDF From Certleader, Welcome to Download: https://www.certleader.com/1Z0-061-dumps.html (New 339 Q&As Version)