QuestionQ170

VerifiedRestricting and Sorting Data

Consider these two queries:

Exhibit:

Question Image

Exhibit:

Question Image

Which statement is true about the two queries?

Explanation

IN (1000, 2000, 3000) is an equal-to-any-member test and is logically equivalent to the three equality conditions joined with OR. Rows with a NULL CUST_CREDIT_LIMIT do not match either predicate, so the two forms have no inherent performance difference.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!