exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 19 discussion

Actual exam question from Oracle's 1z0-071
Question #: 19
Topic #: 1
[All 1z0-071 Questions]

Examine the description of the MEMBERS table:

Examine the partial query:
SELECT city, last_name AS lname FROM members ...;
You want to display all cities that contain the string AN. The cities must be returned in ascending order, with the last names further sorted in descending order.
Which two clauses must you add to the query? (Choose two.)

  • A. ORDER BY 1, 2
  • B. ORDER BY 1, lname DESC
  • C. WHERE city IN ('%AN%')
  • D. WHERE city = '%AN%'
  • E. WHERE city LIKE '%AN%'
  • F. ORDER BY last_name DESC, city ASC
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Lee_jong_suk
3 days, 20 hours ago
Option BE is right!
upvoted 2 times
...
randomArrow
2 weeks, 2 days ago
Selected Answer: BE
EF cannot be right. As the question asks us to first sort by cities in the ascending order. Only then further the sorting requires for lastname is descending order. F does vice versa
upvoted 1 times
...
Nelita
7 months ago
Selected Answer: BE
B-E IS CORRECT.
upvoted 2 times
...
alic_alex
9 months, 1 week ago
Selected Answer: BE
BE is correct
upvoted 1 times
...
aghakhan
11 months ago
Selected Answer: BE
BE is ok , but i think EF is also right
upvoted 1 times
...
dexdinh91
11 months, 1 week ago
Selected Answer: BE
BE is correct
upvoted 1 times
...
trex_fcs
11 months, 4 weeks ago
Selected Answer: BE
lname is alias and can be used on order by
upvoted 1 times
...
leongkaon
1 year ago
Selected Answer: BE
lname is in the question SELECT city, last_name AS lname FROM members
upvoted 2 times
...
leongkaon
1 year ago
Selected Answer: BF
lname is in the question SELECT city, last_name AS lname FROM members
upvoted 1 times
...
apolodor1
1 year ago
Selected Answer: EF
LNAME doesn't exist
upvoted 1 times
ninjax_m
10 months, 1 week ago
LNAME is an alias for last_name and order by accepts aliases for sorting.
upvoted 3 times
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago