web analytics

Braindump2go Free Microsoft Dumps Questions Collection

Latest Real Exam Questions and Answers to help you pass Microsoft and other Hot exam 100%!

2014 Latest 100% Pass Guaranteed Oracle 1Z0-061 Practice Tests (31-40)

QUESTION 31
Examine the data in the CUST_NAME column of the customers table.

image
You need to display customers’ second names where the second name starts with "Mc" or "MC."
Which query gives the required output?

 

image

A.    Option A
B.    Option B
C.    Option C
D.    Option D

Answer: B

QUESTION 32
You want to create a sales table with the following column specifications and data types:
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?

image

A.    Option A
B.    Option B
C.    Option C
D.    Option D

Answer: D

QUESTION 33
Evaluate the following query:
SQL> SELECT TRUNC(ROUND(156.00, -1), -1)
FROM DUAL;
What would be the outcome?

A.    16
B.    100
C.    160
D.    200
E.    150

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

QUESTION 34
You want to display 5 percent of the rows from the sales table for products with the lowest AMOUNT_SOLD and also want to include the rows that have the same AMOUNT_SOLD even if this causes the output to exceed 5 percent of the rows.
Which query will provide the required result?

image

A.    Option A
B.    Option B
C.    Option C
D.    Option D

Answer: D

QUESTION 35
Examine the data in the PROMO_BEGIN_DATE column of the promotions table:

image
You want to display the number of promotions started in 1999 and 2000.
Which query gives the correct output?

image

A.    Option A
B.    Option B
C.    Option C
D.    Option D

Answer: A

QUESTION 36
You want to display the date for the first Monday of the next month and issue the following command:

image
What is the outcome?

A.    It executes successfully and returns the correct result.
B.    It executes successfully but does not return the correct result.
C.    It generates an error because TO_CHAR should be replaced with TO_DATE.
D.    It generates an error because rrrr should be replaced by rr in the format string.
E.    It generates an error because fm and double quotation marks should not be used in the format string.

Answer: A

QUESTION 37
View the Exhibit and examine the structure of the promotions table.
You need to generate a report of all promos from the promotions table based on the following conditions:
1. The promo name should not begin with ‘T’ or ‘N’.
2. The promo should cost more than $20000.
3. The promo should have ended after 1st January 2001.
Which where clause would give the required result?

image
Answer:
WHERE promo_name NOT LIKE ‘T%’ AND promo_name NOT LIKE ‘N%’ AND
promo_cost > 20000 AND promo_end_date > ‘1-JAN-01′

QUESTION 38
Examine the structure of the employees table.

image
You want to display the maximum and minimum salaries of employees hired 1 year ago.
Which two statements would get the correct output?

image

A.    Option A
B.    Option B
C.    Option C
D.    Option D

Answer: BD
Explanation:
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.db2z1 0.doc.sqlref%2Fsrc%2Ftpc%2Fdb2z_sql_subselectexamples.htm

QUESTION 39
Using the customers table, you need to generate a report that shows 50% of each credit amount in each income level. The report should NOT show any repeated credit amounts in each income level.
Which query would give the required result?

image

A.    Option A
B.    Option B
C.    Option C
D.    Option D

Answer: C
Explanation:
Duplicate Rows
Unless you indicate otherwise, SQL displays the results of a query without eliminating the duplicate rows.
To eliminate duplicate rows in the result, include the DISTINCT keyword in the SELECT clause immediately after the SELECT keyword.
You can specify multiple columns after the DISTINCT qualifier. The DISTINCT qualifier affects all the selected columns, and the result is every distinct combination of the columns.

QUESTION 40
You issue the following command to drop the products table:
SQL> DROP TABLE products;
Which three statements are true about the implication of this command?

A.    All data along with the table structure is deleted.
B.    A pending transaction in the session is committed.
C.    All indexes on the table remain but they are invalidated.
D.    All views and synonyms remain but they are invalidated.
E.    All data in the table is deleted but the table structure remains.

Answer: ABD

…go to http://www.lead2pass.com/1z0-061.html to download the full version Q&As.

try_now

, , , , , ,

Comments are currently closed.