Which statement is true regarding the execution of the above queries?

View the Exhibit and examine the structure of the CUSTOMERS table.
You want to generate a report showing the last names and credit limits of all customers whose last names start with A, B, or C, and credit limit is below 10, 000.
Evaluate the following two queries:


Which statement is true regarding the execution of the above queries?


A. Only the first query gives the correct result.
B. Only the second query gives the correct result.
C. Both execute successfully and give the same result.
D. Both execute successfully but do not give the required result.

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “Which statement is true regarding the execution of the above queries?

  1. statement 2 :BETWEEN ‘A’ and ‘c’ is excluding c
    only considering A and B;
    so statement 2 executing successfully not giving correct output

    1. No, this is not correct. ‘c’ will be included in the search. A string like ‘CA’ will be included in the search, but a string like ‘CD’ will not since D>C. Therefore, the second statement would still fail, because last names containing letters not between a and c would not be displayed.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.