Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 1z0-882 topic 1 question 52 discussion

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

Given the table City:

SELECT Name -

FROM City -
WHERE CountryCode = ‘USA" OR WHERE CountryCode= ‘JPN’
What does this statement procedure?

  • A. A single result set with one column that contains the names of cities from country codes USA and JPN.
  • B. Two result sets each containing a single column with the names of cities from country codes USA and JPN.
  • C. A single result set with two columns containing the names from country codes USA and JPN.
  • D. No result set is returned and an error message is given.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
chehin
1 year, 11 months ago
The D is correct for my
upvoted 1 times
...
ekpo
2 years, 10 months ago
We should be selecting everything from city table not just name.Name and countrycode should be selected orelse you get an error message.Answer D
upvoted 1 times
...
ekpo
2 years, 10 months ago
Sorry!!!comments was for Q51
upvoted 1 times
...
ekpo
2 years, 10 months ago
Whe have a subquery present here...WHERE clause is absolutely perfect.
upvoted 1 times
...
mschnittker
3 years, 7 months ago
Answer D is correct
upvoted 2 times
...
Gruiou
4 years, 1 month ago
I think 'WHERE' can't be used twice like this. SELECT Name FROM world.City WHERE CountryCode = 'USA' OR WHERE CountryCode = 'JPN' Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE CountryCode = 'JPN'' at line 2 0.000 sec
upvoted 2 times
...
lorrazen
4 years, 3 months ago
I think the answer is D because 'where' appear twice in the where condition clause.
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 ...