1z0-071 Exam QuestionsBrowse all questions from this exam

1z0-071 Exam - Question 112


Examine the description of the CUSTOMERS table:

Which two SELECT statements will return these results: (Choose two.)

Show Answer
Correct Answer: EF

To obtain the results showing customer names 'Mandy' and 'Mary', the SELECT statements need to correctly filter the names based on the provided criteria. The SQL LIKE operator is used to search for a specified pattern in a column. The pattern 'Ma%' will target names starting with 'Ma'. This is case-sensitive in most database implementations. Specifically, the options that will match 'Ma%' correctly and are case-sensitive are E and F. Option E uses '%a%', which will return names that contain the letter 'a' anywhere in them. Option F uses 'Ma%', which will return names that start with 'Ma'. Therefore, both options E and F will give the desired result of 'Mandy' and 'Mary'. Other options either use incorrect wildcards or do not match the specified patterns.

Discussion

8 comments
Sign in to comment
cadcadley
Jul 12, 2023

EF is correct

CMjerOptions: EF
Nov 19, 2023

D is false - it will return all names (checked with SQL Developer)

Sangiii
Feb 27, 2024

EF is correct

Cecilia_Soso
Oct 30, 2023

D and F, %a% will return all names with letter a

Orxan_H
Dec 11, 2023

EF are correct

lucemqyOptions: EF
May 14, 2024

EF since like is case sensitive

yaya32Options: EF
Jul 18, 2024

EF is correct

826cb95Option: F
May 2, 2025

F -for sure C - is second closest if it was customer_name LIKE 'Ma%' but not when it is 'Ma*' as shown