Question 31

You need to display the date 11-oct-2007 in words as ‘Eleventh of October, Two Thousand Seven’. Which SQL statement would give the required result?

Correct Answer:C

Question 32

View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tables.
1Z0-071 dumps exhibit
The PROD_ID column is the foreign key in the SALES table referencing the PRODUCTS table.
The CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively.
Examine this command:
CREATE TABLE new_sales (prod_id, cust_id, order_date DEFAULT SYSDATE)
AS
SELECT prod_id, cust_id, time_id FROM sales;
Which statement is true?

Correct Answer:D

Question 33

Examine this SELECT statement and view the Exhibit to see its output: (Choose two.)
1Z0-071 dumps exhibit
SELECT constraints_name, constraints_type, search_condition, r_constraints_name, delete_rule, status, FROM user_constraints
WHERE table_name = 'ORDERS';
Which two statements are true about the output?

Correct Answer:AC

Question 34

Which two statements are true about sequences crated in a single instance Oracle database?

Correct Answer:CD

Question 35

Which two statements are true regarding single row functions? (Choose two.)

Correct Answer:BD

Question 36

See the Exhibit and examine the structure of the PROMOTIONS table:
1Z0-071 dumps exhibit
Using the PROMOTIONS table,
you need to find out the average cost for all promos in the range $0-2000 and $2000-5000 in category A.
You issue the following SQL statements:
1Z0-071 dumps exhibit
What would be the outcome?

Correct Answer:B
CASE Expression
Facilitates conditional inquiries by doing the work of an IF-THEN-ELSE statement:
CASE expr WHEN comparison_expr1 THEN return_expr1 [WHEN comparison_expr2 THEN return_expr2
WHEN comparison_exprn THEN return_exprn ELSE else_expr]
END

START 1Z0-071 EXAM