Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

1z0-071 Exam Dumps - Oracle Database 12c SQL

Go to page:
Question # 4

Which three are true?

A.

LAST_DAY returns the date of the last day of the current ,month onlyu.

B.

CEIL requires an argument which is a numeric data type.

C.

ADD_MONTHS adds a number of calendar months to a date.

D.

ADD_MONTHS works with a character string that can be implicitlyt converted to a DATE data type.

E.

LAST_DAY return the date of the last day the previous month only.

F.

CEIL returns the largest integer less than or equal to a specified number.

G.

LAST_DAY returns the date of the last day of the month for the date argument passed to the function.

Full Access
Question # 5

Examine the description of the EMPLOYEES table:

You write this failing statement:

SELECT dept_no AS department_id, MAX (salary) As max_sal

FROM employees

WHERE salary >10000

GROUP BY department_id

ORDER BY max_sal;

Which clause causes the error?

A.

ORDER BY

B.

WHERE

C.

GROUP BY

D.

SELECT

Full Access
Question # 6

Which statements are true regarding primary and foreign key constraints and the effect they can have on table data?

A.

A table can have only one primary key but multiple foreign keys.

B.

It is possible for child rows that have a foreign key to remain in the child table at the time the parent row is deleted.

C.

Primary key and foreign key constraints can be defined at both the column and table level.

D.

Only the primary key can be defined the column and table level.

E.

It is possible for child rows that have a foreign key to be deleted automatically from the child table at the time the parent row is deleted.

F.

The foreign key columns and parent table primary key columns must have the same names.

G.

A table can have only one primary key and one foreign key.

Full Access
Question # 7

Examine the description of the SALES table:

The SALES table has 5,000 rows.

Examine this statement:

CREATE TABLE sales1 (prod id, cust_id, quantity_sold, price)

AS

SELECT product_id, customer_id, quantity_sold, price

FROM sales

WHERE 1=1

Which two statements are true?

A.

SALES1 is created with 1 row.

B.

SALES1 has PRIMARY KEY and UNIQUE constraints on any selected columns which had those constraints in the SALES table.

C.

SALES1 Is created with 5,000 rows.

D.

SALES1 has NOT NULL constraints on any selected columns which had those constraints in the SALES table.

Full Access
Question # 8

Examine this statement:

SELECT last name

FROM employees

ORDER BY CASE WHEN salary = (SELECT MAX(salary) FROM employees)

THEN ‘A’

ELSE last_ name

END ,last_name DESC;

Which two statements are true?

A.

The names of employees earning the maximum salary will appear first in descending order.

B.

The names of employees earning the maximum salary will appear first In ascending order.

C.

All remaining employee names will appear in ascending order.

D.

All remaining employee names will appear in an unspecified order.

E.

All remaining employee names will appear in descending order.

F.

The names of employees earning the maximum salary will appear first in an unspecified order.

Full Access
Go to page: