PassLeader now are offering 100% pass ensure 1Z0-061 dumps! All 1Z0-061 exam questions have been updated with correct answers, welcome to download the newest PassLeader 1Z0-061 VCE dumps and PDF dumps: http://www.passleader.com/1z0-061.html (322 Q&As)
BTW: Download PassLeader 1Z0-061 dumps from Google Drive for free: https://drive.google.com/open?id=0B-ob6L_QjGLpZ2pPVDVMSlJ6UjA
QUESTION 9
Evaluate the following SQL commands:
The command to create a table fails. Identify the two reasons for the SQL statement failure?
A. You cannot use SYSDATE in the condition of a check constraint.
B. You cannot use the BETWEEN clause in the condition of a check constraint.
C. You cannot use the NEXTVAL sequence value as a default value for a column.
D. You cannot use ORD_NO and ITEM_NO columns as a composite primary key because ORD_NO is also the foreign key.
Answer: AC
QUESTION 10
View the Exhibit and examine the structure of the SALES table.
The following query is written to retrieve all those product IDs from the SALES table that have more than 55000 sold and have been ordered more than 10 times.
Which statement is true regarding this SQL statement?
A. It executes successfully and generates the required result.
B. It produces an error because count(*) should be specified in the SELECT clause also.
C. It produces an error because count{*) should be only in the HAVING clause and not in the WHERE clause.
D. It executes successfully but produces no result because COUNT (prod_id) should be used instead of COUNT (*).
Answer: C
Explanation:
Restricting Group Results with the HAVING Clause You use the HAVING clause to specify the groups that are to be displayed, thus further restricting the groups on the basis of aggregate information. In the syntax, group_condition restricts the groups of rows returned to those groups for which the specified condition is true. The Oracle server performs the following steps when you use the HAVING clause:
1. Rows are grouped.
2. The group function is applied to the group.
3. The groups that match the criteria in the HAVING clause are displayed. The HAVING clause can precede the GROUP BY clause, but it is recommended that you place the GROUP BY clause first because it is more logical. Groups are formed and group functions are calculated before the HAVING clause is applied to the groups in the SELECT list.
Note: The WHERE clause restricts rows, whereas the HAVING clause restricts groups.
QUESTION 11
View the Exhibit and examine the structure of the customers table.
Using the customers table, you need to generate a report that shows an increase in the credit limit by 15% for all customers. Customers whose credit limit has not been entered should have the message “Not Available” displayed. Which SQL statement would produce the required result?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Explanation
NVL Function
Converts a null value to an actual value:
Data types that can be used are date, character, and number.
Data types must match:
NVL(commission_pct, 0)
NVL(hire_date, ’01-JAN-97′)
NVL(job_id, ‘No Job Yet’)
QUESTION 12
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?
A. It shows COST_REMARK for all the promos in the table.
B. It produces an error because the SUBQUERY gives an error.
C. It shows COST_REMARK for all the promos in the promo category ‘TV’
D. It produces an error because SUBQUERIES cannot be used with the case expression.
Answer: A
PassLeader now are offering 100% pass ensure 1Z0-061 dumps! All 1Z0-061 exam questions have been updated with correct answers, welcome to download the newest PassLeader 1Z0-061 VCE dumps and PDF dumps: http://www.passleader.com/1z0-061.html (322 Q&As)
BTW: Download PassLeader 1Z0-061 dumps from Google Drive for free: https://drive.google.com/open?id=0B-ob6L_QjGLpZ2pPVDVMSlJ6UjA