Exam 1z0-071 All QuestionsBrowse all questions from this exam
Question 175

Examine the description of the CUSTOMERS table:

You need to display last names and credit limits of all customers whose last name starts with A or B in lower or upper case, and whose credit limit is below 1000.

Examine this partial query:

SELECT cust_last_name, cust_credit_limit FROM customers

Which two WHERE conditions give the required result?

    Correct Answer: B, D

    To display the last names and credit limits of all customers whose last name starts with A or B (in either lower or upper case), and whose credit limit is below 1000, we need to ensure the WHERE conditions meet these specific criteria. The correct conditions should convert the last names to a uniform case for comparison and directly check if the credit limit is below 1000 without altering its value unnecessarily. Option B uses UPPER to convert the last names to upper case and checks for patterns starting with A or B, correctly filtering credit limits below 1000. Option D employs INITCAP for capitalization and direct comparison of credit limits, though INITCAP might not be necessary. Both options meet the requirements appropriately: converting the case for comparison and correctly checking credit limits.

Discussion
zouveOptions: BD

BD tested

kesammy9Options: BD

BD is correct

tonII20IIOptions: BD

BD must be right

wi11111Options: BD

For option B, what if cust_credit_limit = 999.6?

Orxan_HOptions: BD

B D are correct

ogi33Options: BD

only D, B not in case cust_credit_limit =1000.45

yaya32Options: BD

BD is correct

lucemqyOptions: BD

BD is the correct answer

jm9999

What is the point of using round?

ShrimathiOptions: BD

BD correct, since E didnt not search for the last name start with A/B, the condition is looking for lastname='A'