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

Free and Premium Oracle 1z0-909 Dumps Questions Answers

Page: 1 / 2
Total 65 questions

MySQL 8.0 Database Developer Questions and Answers

Question 1

Examine the Test.php script which is numbered for clarity, and its output:

PHP Fatal error: Uncaught Error: call to underined function mysqli_connect () in Test.php:2

Which action will fix this error?

Options:

A.

Enable the mysqli extension in the php.ini file.

B.

Replace line 2 with Slink = mysql.connect {"localhost: 3306n, "username", "pas "schema") ;

C.

Replace line 2 With: Slink = mysql_xdevapi\getSession

("mysqlx://username:password@localhost:3306","schema");

D.

Install the PHP executable in the path used by the MySQL installation.

Buy Now
Question 2

Examine this statement and output:

Which is true?

Options:

A.

The underlying table's index on the Name column is not chosen because of low selectivity.

B.

myview cannot be automatically indexed.

C.

myview was defined with the temptable processing algorithm.

D.

Column Name in myview can be indexed if the is_updatable attribute is true.

Question 3

Your session has sqi_mode set to default.

Examine this statement which executes successfully:

Now examine this statement:

Which two changes are required to the insert statement so that it inserts the correct data?

• std_id = 10301

• firstname = Mary

• lastname = O'Hagen

• birthdate = November 26, 1997

• reg_date = the current date

Options:

A.

Change DATE () to DAY ().

B.

Change "O'Hagen" to 'o\'Hagen'.

C.

Change date () to CURRENT_TIMESTAMP () .

D.

Change " NULL " to NULL.

E.

Change " NULL " to ' NULL ' .

F.

Change "O'Hagen" to "O\'Hagen".

Question 4

Examine this statement and output:

CREATE TABLE geom (g GEOMETRY NOT NOLL, SPATIAL INDEX(g) ) ; Query OK, 0 rows affected, 1 warning (0.01 sec)

An attempt is made to add an SRID attribute to the column using the statement:

ALTER TABLE geom MODIFY COLUMN g geometry NOT NULL SRID 0;

Which is true?

Options:

A.

An error is generated because srid o is an invalid identifier value.

B.

Execution succeeds with a warning.

C.

An error is generated because the index prevents changes to the column.

D.

Execution succeeds and allows the use of the index by the optimizer.

Question 5

Examine these statements and output:

Now, examine this command:

Mysql> ROLLBACK;

What is true about the effect of the command?

Options:

A.

It undoes the update command.

B.

It returns an error because there is no active transaction.

C.

It undoes the insert command.

D.

It undoes both insert and update commands.

E.

It has no effect.

Question 6

Examine these statements issued from Session 1 which execute successfully:

Now, examine this statement issued from Session 2:

What is the outcome of the update statement in Session 2?

Options:

A.

The row will be updated immediately.

B.

The statement will wait for the transaction in Session 1 to finish.

C.

A deadlock will occur.

D.

The transaction in Session 1 will be rolled back automatically.

Question 7

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 8

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 9

Which select statement returns true?

Options:

A.

SELECT NULL <> NULL;

B.

SELECT NULL <=> NULL;

C.

SELECT NULL = NULL;

D.

SELECT NULL := NULL;

Exam Detail
Vendor: Oracle
Certification: MySQL Developer
Exam Code: 1z0-909
Last Update: Nov 21, 2024
1z0-909 Question Answers
Page: 1 / 2
Total 65 questions