adplus-dvertising
frame-decoration

Question

Which of the following WHERE clauses are faster?
    1. WHERE col * 3 < 9
    2. WHERE col < 9 / 3

a.

1

b.

2

c.

same speed

d.

dependent on operating system

Answer: (b).2

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following WHERE clauses are faster?

Similar Questions

Discover Related MCQs

Q. Which system variable tells the optimizer to skip certain plans based on estimates of the number of rows accessed for each table?

Q. Which system variable tells how far into the rest of each incomplete plan the optimizer should look to evaluate whether it should be expanded further?

Q. The optimizer_prune_level is set by default.

Q. Calculations involving numbers are faster than those involving string.

Q. To convert an int to string, the function is _________________

Q. To convert a string to an int, the function is _________________

Q. To maintain performance of tables having variable length rows, which statement is used?

Q. Which of these columns are faster?

Variable length, Fixed length

Q. Which of these take more space?

Variable length columns, Fixed length columns

Q. To minimize disk I/O, which of these should be chosen?

CHAR, VARCHAR

Q. Avoiding NULL in columns may make queries simpler.

Q. Which of these can be used to generate hash values?

Q. IP numbers can be represented as _________________

Q. Bulk loading is less efficient than single row loading.

Q. Loading is faster when a table has no indexes than when it is indexed.

Q. Which is more efficient?

LOAD DATA, INSERT

Q. Without LOCAL, LOAD DATA is _________________

Q. Which option turns on the –extended-insert?

Q. Which table option for MyISAM tables reduces index flushing?

Q. Which option repairs MyISAM tables automatically after they open?