Examine the description of the CUSTOMERS table: You want to display details of all customers who reside in cities starting with the letter D followed by at least two characters. Which query can be used?
there is no valid answer here
correct would be (followed by at least two characters):
SELECT * FROM EMPLOYEES WHERE FIRST_NAME LIKE 'D__%';
but A is the most correct
I assume there's been some issue with copy-pasting the text, and the first ' as been replaced with "~
I think it's supposed to be A anyway, but you're certainly correct that they're all wrong written as they are.
Many comments here saying that 2 underscores must be there but I think single underscore is enough because 'D_%' means that after underscore % means that there must be a character or more to display the result. Hence, A option is accurate and correct.
A is the most close to be valid answer.
LIKE must be used when comparing text strings (B, D are incorrect), metacharacter % must be used to accept strings of variable length (C is incorrect), metacharacter _ stands for any character.
Underscore _ should be doubled to fulfill the request of two additional characters that follows initial letter D, so the query should end with LIKE ‘D__%’
the table name CUSTOMERS table, from where you came with EMPLOYEES ?
ex: WHERE CustomerName LIKE 'a_%' --> Finds any values that start with "a" and are at least 2 characters in length
https://www.w3schools.com/sql/sql_like.asp
upvoted 1 times
...
...
This section is not available anymore. Please use the main Exam Page.1z0-082 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
NowOrNever
Highly Voted 3 years, 11 months agoSimoneF
3 years, 11 months agoelvegaa
3 years, 11 months agoEkos
Highly Voted 3 years, 12 months agoemmededalus
Most Recent 3 months, 3 weeks agovaliantvimal
5 months, 3 weeks agonautil2
1 year, 1 month agoalgerianphoenix
2 years, 5 months agosaad3577
2 years ago