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.
statement 2 :BETWEEN ‘A’ and ‘c’ is excluding c
only considering A and B;
so statement 2 executing successfully not giving correct output
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.
correct. This is what will be caught by this query:
A%
B%
C