Labour Day Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

Oracle 1z0-909 MySQL 8.0 Database Developer Exam Practice Test

Page: 1 / 7
Total 65 questions

MySQL 8.0 Database Developer Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$42  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36.75  $104.99
Question 1

The collection col contains all episodes for all seasons for a TV show.

Examine this document which has an example of the details for each episode:

Which query returns all expisode names from the first season?

Options:

A.

SELECT doc->"$.name" FROM col WHERE doc->"$.season" = "1";

B.

SELECT "S.name" FROM col WHERE "S.season" = "1";

C.

SELECT doc-»,,$.name,, FROM col WHERE doc-»"$ . season" = "1";

D.

SELECT name FROM col WHERE season = 1;

Question 2

The variables c and d are declared as integer types.

Examine these initialization statements with placeholder value , which execute successfully:

Now, examine this loop which executes successfully:

Which loop results in the same value of d for all valid values of ?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 3

Examine this bar graph based on columns from the players table:

Which two statements would generate this bar graph?

Options:

A.

SELECT Name, Gender, Sport, REPEAT('# 'Y GPA*10) AS GPA_Graph FROM players ORDER BY GPA DESC;

B.

SELECT Name, Gender, Sport, LENGTH (GPA*10, '# ') AS GPA_Graph FROM players ORDER BY GPA DESC;

C.

SELECT Name, Gender, Sport, CHAR_LENGTH ('# ' GPA*10) AS GPA_Graph FROM players ORDER BY GPA DESC;

D.

SELECT Name, Gender, Sport, RPAD ('# ' GPA*10) AS GPA_Graph FROM players ORDER BY GPA DESC;

E.

SELECT Name, Gender, Sport, CONCAT ('# ' GPA*10) AS GPA_Graph FROM players ORDER BY GPA DESC;

Question 4

Examine the employee table structure:

Which set of statements immediately returns empname for a given emp_id by using a parameterized prepare statement?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 5

You must reclaim memory used by a prepared statement named prep. Which two achieve this?

Options:

A.

SET @a = ''; EXECUTE prep USING @a;

B.

DEALLOCATE PREPARE prep?

C.

DROP PROCEDURE prep;

D.

SET @prep = NULL;

E.

DROP PREPARE prep;

F.

PREPARE prep FROM '';

Question 6

Examine these statements which execute successfully:

The statements executed without exception. Which two are true?

Options:

A.

No transaction commits.

B.

One row is inserted into band.

C.

Two transactions commit.

D.

No row is inserted into band.

E.

The transaction is rolled back to the savepoint.

Question 7

The employee table includes these columns:

e_id INT, e_name VARCHAR (45), dept_id INT salart INT

You must create a stored function, getMaxSalary(), which returns the maximum salary paid for a given department id.

Which statement will create the function?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 8

Examine this statement that execute successfully in an interactive session:

The user running this session now goes to lunch for an hour.

Now, examine these statements executed independently in separate sessions while Session 0 is still active:

How many of them will complete while Session 0 is still active?

Options:

A.

5

B.

1

C.

2

D.

0

E.

3

F.

4

Question 9

The meeting table stores meeting schedules with participants from five continents. The participants' details are stored in another table.

You need to adjust the start_time and duration columns for optimal storage. What datatype changes would achieve this?

Options:

A.

start_time TIMESTAMP duration TIMESTAMP

B.

start_time TIMESTAMP duration TIME

C.

start_time DATETIME duration DATETIME

D.

start_time TIME duration TIME

E.

start__time DATETIME duration TIME

Page: 1 / 7
Total 65 questions