New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Legit 1z0-882 Exam Download

Page: 4 / 4
Total 100 questions

Oracle Certified Professional, MySQL 5.6 Developer Questions and Answers

Question 13

Examine the fruit and wine tables:

Fruit

You execute this query:

SELECT fruited, fruitname FROM fruit

UNION

SELECT id, name, country FROM wine;

What is the result?

Options:

A.

The query succeeds and returns five columns of data.

B.

The query succeeds and returns two columns of data.

C.

The query falls because UNION does not work on tables with different number of columns.

D.

The query falls because the number of columns in the SELECT in the SELECT clauses are not equal.

Question 14

Consider a table my_table , with contents shown:

You execute:

SELECT a b, b a

FROM my_table

WHERE a < s

ORDER BY b;

What does this statement return?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 15

Which three statements describe valid reasons why queries that use “SELECT” construct are discouraged?

Options:

A.

SELECT * may cause more data than you need to be read from disk if your application needs only some columns.

B.

SELECT * causes more data than you need to be sent via the client/server protocol if your application needs only some columns.

C.

SELECT * prevents the use of indexes, so a full table scan for every query.

D.

SELECT *causes your application to depend on the columns present when you wrote it , so your application could break if the table structure changes.

E.

SELECT * causes the statements to return all rows from the table.

Page: 4 / 4
Total 100 questions