1Z0-061 Dumps

1Z0-061 Free Practice Test

Oracle 1Z0-061: Oracle Database 12c SQL Fundamentals

QUESTION 21

- (Topic 1)
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?

Correct Answer: A
We must use the AND operator, not the OR operator, as all the Boolean statements must be true to meet the conditions.

QUESTION 22

- (Topic 4)
Examine the following query:
<>

Correct Answer: C

QUESTION 23

- (Topic 2)
Examine the structure of the STUDENTS table:
<>>

Correct Answer: D

QUESTION 24

- (Topic 3)
View the Exhibit and examine the structure of ORDERS and CUSTOMERS tables.
<>>

Correct Answer: A

QUESTION 25

- (Topic 1)
You need to display the first names of all customers from the customers table that contain the character 'e' and have the character 'a' in the second last position.
Which query would give the required output?

Correct Answer: A
The SUBSTR(string, start position, number of characters) function accepts three parameters and returns a string consisting of the number of characters extracted from the source string, beginning at the specified start position:
substr(\'http://www.domain.com\', 12, 6) = domain
The position at which the first character of the returned string begins. When position is 0 (zero), then it is treated as 1.
When position is positive, then the function counts from the beginning of string to find the first character.
When position is negative, then the function counts backward from the end of string. substring_length
The length of the returned string. SUBSTR calculates lengths using characters as defined by the input character set. SUBSTRB uses bytes instead of characters. SUBSTRC uses Unicode complete characters.
SUBSTR2 uses UCS2 code points. SUBSTR4 uses UCS4 code points. When you do not specify a value for this argument, then the function
The INSTR(source string, search item, [start position], [nth occurrence of search item]) function returns a number that represents the position in the source string, beginning from the given start position, where the nth occurrence of the search item begins: instr(\'http://www.domain.com\', \'.\', 1, 2) = 18