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

Note! Following 1z0-882 Exam is Retired now. Please select the alternative replacement for your Exam Certification.

1z0-882 Exam Dumps - Oracle Certified Professional - MySQL 5.6 Developer

Go to page:
Question # 9

In MYSQL 5.6 you have the table t1:

CREATE TABLE t1 (

id int unsigned NOT NULL PRIMARY key) ENGINE = InnoDB;

There are two connections to the server. They execute in this order:

Connection 1> SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;

Connection 1> START TRANSACTION;

Connection 1> SELECT * FROM t1 WHERE id =1;

Connection 2> TRUNCATE TABLE t1;

What happens to the TRUNCATE TABLE command in connection 2?

A.

It immediately proceeds and causes an implicit commit of the transaction in connection1.

B.

It runs concurrently with the transaction in connection 1 as each connection has its own view of the data in the t1 table.

C.

It blocks waiting for a metadata lock until the transaction in connection 1 ends.

D.

It blocks waiting for a table lock until the transaction in connection 1 ends.

Full Access
Question # 10

Which three connector/J connection strings can be used to connect to the MYSQL server?

A.

Jdbc:mysq1://localhost/test?user =xxx&password=xxx

B.

Jdbc :mysqli://localhost/test?user=xxx&password=xxx

C.

Jdbc :mysql:replication://master,slave1.slave2. /test?user=xxx&password=xxx

D.

Jdbc:mysql:proxy://localhost/test?user=xxx&password=xxx

E.

Jdbc :mysql:loadbalance://master.slave1,slave2/test?user=xxx&password=xxx

Full Access
Question # 11

You have two test tables:

  • Code_innodb as InnoDB engine
  • Code_ myisam as MYISAM engine

The tables have the same structure:

The tables have one row of data:

You execute an INSERT statement on both code_myisam tables and receive duplicate key errors:

mysql> INSERT INTO code_innodb VALUES (1, ‘Alpha’), (2, ‘Beta’), (3, ‘charlie,),(4, ‘Delta’);

ERROR 1062 (23000): Duplicate entry ‘3’ for key ‘PRIMARY’

Mysql> INSERT INTO code_myisam VALUES (1, ‘Alpha’), (2, ‘Beta’), (3, ‘charlie’),

(4, ‘Delta’);

ERROR 1062 (23000); Duplicate entry ‘3’ for key ‘PRIMARY’

What is the expected output of the SELECT statements?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 12

Which statement correctly demonstrates using a subquery as a scalar expression?

A.

SELECT (

SELECT SUM (population)

FROM Country

SELECT SUM (population)

FROM Country

WHERE Code =’CAN’

)

B.

SELECT SUM (population)

FROM Country

WHERE Code =”USA”

+ (SELECT SUM (population)

FROM Country

WHERE Code =.’CAN’

)

C.

SELECT

(SELECT SUM (population)

FROM Country

WHERE Code =’USA’

FROM country

WHERE Code= ‘CAN’

)

D.

(SELECT SUM (population)

FROM Country

WHERE Code =”USA’

Full Access
Question # 13

A SELECT statement without an ORDER BY clause return some rows.

Which statement is always true about the order of the returned results?

A.

The results are in ascending order.

B.

The results are in descending order.

C.

The results are in the order inserted.

D.

The results are not in a set order.

Full Access
Question # 14

The data from t1 table is:

Assuming You want to see this output:

Which query achieves the preceding result?

A.

SELECT name FROM t1 WHERE name LIKE ,_e%

B.

SELECT name FROM t1 WHERE name LIKE,e%.;

C.

SELECT name FROM t1 GROUP BY name ORDER by name LIMIT 1,1;

D.

SELECT name FROM t1 GROUP BY name HAVING sun ( marks)=176 ORDER BY name;

Full Access
Question # 15

Consider the content of the class and student tables:

Class

Which three queries produce the same result?

A.

SELECT *

FROM class

INNER JOIN student

ON class.class_id=student.class_id

B.

SELECT *

FROM JOIN student

LEFT JOIN student

ON class. Class.class_id=student.class_id

C.

SELECT *

FROM class

INNER JOIN student

WHERE NOT ISNULL (student.class_id)

D.

SELECT *

FROM JOIN student

On class .class_id=student.class_id

WHERE NOT ISNULL (student.class_id)

E.

SELECT *

FROM student

RIGHT JOIN class

ON class.class_id=student.class_id

Full Access
Go to page: