Proper study guides for 1Z0-061 Oracle Database 12c SQL Fundamentals certified begins with 1z0 061 dumps preparation products which designed to deliver the oracle 1z0 061 by making you pass the 1Z0-061 test at your first time. Try the free 1z0 061 dumps right now.
Check 1Z0-061 free dumps before getting the full version:
NEW QUESTION 1
Examine the structure of the PRODUCTS table:
You want to change the definition of the PRODUCTS table. The PROD_DETAILS column must be changed to allow 4000 characters.
Which statement is valid?
Answer: B
NEW QUESTION 2
Which SQL statement displays the date March 19, 2001 in a format that appears as “Nineteenth of March 2001 12:00:00 AM”?
Answer: A
NEW QUESTION 3
You need to write a SQL statement that returns employee name, salary, department ID, and maximum salary earned in the department of the employee for all employees who earn less than the maximum salary in their department.
Which statement accomplishes this task?
Answer: B
Explanation: function MAX(column_name)
Incorrect
A- invalid statement
C- inner query return more than one line
D- column maxsal does not exists.
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 5-7
NEW QUESTION 4
Which two statements are true regarding constraints?
Answer: BD
Explanation: B: Any number of rows can include nulls for columns without NOT NULL constraints because nulls are not considered equal to anything.
D: Constraints can be added, dropped, enabled, disabled, or validated. DISABLE allows incoming data, regardless of whether it conforms to the constraint
Incorrect:
Not A: The relational model permits the value of foreign keys either to match the referenced primary or unique key value, or be null.
NEW QUESTION 5
View the Exhibit and examine the data in the PROJ_TASK_DETAILS table.
The PROJ_TASK_DETAILS table stores information about tasks involved in a project and the relation between them.
The BASED_ON column indicates dependencies between tasks. Some tasks do not depend on the completion of any other tasks.
You need to generate a report showing all task IDs, the corresponding task ID they are dependent on, and the name of the employee in charge of the task it depends on.
Which query would give the required result?
Answer: B
NEW QUESTION 6
Consider these three statements:
create synonym s1 for employees; create public synonym s1 for departments; select * from s1;
Which of the following statements is correct?
Answer: B
Explanation: The order of priority is to search the schema namespace before the public namespace, so it will be the private synonym (to EMPLOYEES) that will be found.
NEW QUESTION 7
You issue the following query:
SQL> SELECT AVG(MAX(qty))
FROM ord_items GROUP BY item_no
HAVING AVG(MAX(qty))>50;
Which statement is true regarding the outcome of this query?
Answer: B
Explanation: The general form of the SELECT statement is further enhanced by the addition of the HAVING clause and becomes:
SELECT column|expression|group_function(column|expression [alias]), …}
FROM table
[WHERE condition(s)] [GROUP BY {col(s)|expr}] [HAVING group_condition(s)]
[ORDER BY {col(s)|expr|numeric_pos} [ASC|DESC] [NULLS FIRST|LAST]];
An important difference between the HAVING clause and the other SELECT statement clauses is that it may only be specified if a GROUP BY clause is present. This dependency is sensible since group-level rows must exist before they can be restricted. The HAVING clause can occur before the GROUP BY clause in the SELECT statement. However, it is more common to place the HAVING clause after the GROUP BY clause. All grouping is performed and group functions are executed prior to evaluating the HAVING clause.
NEW QUESTION 8
The user Sue issues this SQL statement:
GRANT SELECT ON sue.EMP TO alice WITH GRANT OPTION;
The user Alice issues this SQL statement:
GRANT SELECT ON sue.EMP TO reena WITH GRANT OPTION;
The user Reena issues this SQL statement: GRANT SELECT ON sue.EMP TO timber; The user Sue issues this SQL statement: REVOKE select on sue.EMP FROM alice;
For which users does the revoke command revoke SELECT privileges on the SUE.EMP table?
Answer: C
Explanation: use the REVOKE statement to revoke privileges granted to other users. Privilege granted to others through the WITH GRANT OPTION clause are also revoked.
Alice, Reena and Timber will be revoke.
Incorrect
A- the correct answer should be Alice, Reena and Timber
B- the correct answer should be Alice, Reena and Timber
D- the correct answer should be Alice, Reena and Timber
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 13-17
NEW QUESTION 9
You need to list the employees in DEPARTMENT_ID 30 in a single row, ordered by HIRE_DATE.
Examine the sample output:
Which query will provide the required output?
Answer: B
NEW QUESTION 10
Examine the structure of the INVOICE table: Exhibit:
Which two SQL statements would execute successfully? (Choose two.)
Answer: AC
Explanation: The NVL2 Function
The NVL2 function provides an enhancement to NVL but serves a very similar purpose. It evaluates whether a column or expression of any data type is null or not.
5-6 The NVL function
If the first term is not null, the second parameter is returned, else the third parameter is returned. Recall that the NVL function is different since it returns the original term if it is not null. The NVL2 function takes three mandatory parameters. Its syntax is NVL2(original, ifnotnull, ifnull), where original represents the term being tested. Ifnotnull is returned if original is not null, and ifnull is returned if original is null. The data types of the ifnotnull and ifnull parameters must be compatible, and they cannot be of type LONG.
They must either be of the same type, or it must be possible to convert ifnull to the type of the ifnotnull parameter. The data type returned by the NVL2 function is the same as that of the ifnotnull parameter.
NEW QUESTION 11
Evaluate the following query:
SQL> SELECT TRUNC(ROUND(156.00, -1), -1) FROM DUAL;
What would be the outcome?
Answer: C
Explanation: Function Purpose
ROUND(column|expression, n) Rounds the column, expression, or value to n decimal places or, if n is omitted, no decimal places (If n is negative, numbers to the left of decimal point are rounded.)
TRUNC(column|expression, n) Truncates the column, expression, or value to n decimal places or, if n is omitted, n defaults to zero
NEW QUESTION 12
You notice a performance change in your production Oracle 12c database. You want to know which change caused this performance difference.
Which method or feature should you use?
Answer: B
Explanation: The awrddrpt.sql report is the Automated Workload Repository Compare Period Report. The awrddrpt.sql script is located in the $ORACLE_HOME/rdbms/admin directory. Incorrect:
Not A:Compare Period ADDM
Use this report to perform a high-level comparison of one workload replay to its capture or to another replay of the same capture. Only workload replays that contain at least 5 minutes of database time can be compared using this report.
NEW QUESTION 13
Which normal form is a table in if it has no multi-valued attributes and no partial dependencies?
Answer: B
Explanation: According to the Second Normal Form (2NF) there must be no partial dependencies on a concatenated key.
NEW QUESTION 14
Examine the structure of the EMPLOYEES table:
EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25)
Which three statements insert a row into the table? (Choose three.)
Answer: CEF
Explanation: EMPLOYEE_ID is a primary key.
Incorrect
A- EMPLOYEE_ID cannot be null
B- EMPLOYEE_ID cannot be null
D= mismatch of field_name with datatype
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 10-11
NEW QUESTION 15
Evaluate the following SQL statement:
Which statement is true regarding the above query if one of the values generated by the subquery is null?
Answer: D
NEW QUESTION 16
The DBA issues this SQL command: CREATE USER scott IDENTIFIED by tiger;
What privileges does the user Scott have at this point?
Answer: A
Explanation: when a user is created, by default no privilege is granted
Incorrect
B- SELECT is not grant
C- CONNECT is not grant
D- default profile is grant by default not privilege.
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 13-6
NEW QUESTION 17
Evaluate the following SQL statement:
Which statement is true regarding the outcome of the above query?
Answer: D
NEW QUESTION 18
View the Exhibit and examine the structure of CUSTOMERS table.
Evaluate the following query:
Which statement is true regarding the above query?
Answer: A
NEW QUESTION 19
View the Exhibit for the structure of the student and faculty tables.
You need to display the faculty name followed by the number of students handled by the faculty at the base location.
Examine the following two SQL statements:
Which statement is true regarding the outcome?
Answer: D
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)