exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 73 discussion

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

Examine the description of the EMPLOYEES table:

Which statement will execute successfully, returning distinct employees with non-null first names?

  • A. SELECT first_name, DISTINCT last_name FROM employees WHERE first_name <> NULL;
  • B. SELECT first_name, DISTINCT last_name FROM employees WHERE first_name IS NOT NULL;
  • C. SELECT DISTINCT * FROM employees WHERE first_name IS NOT NULL;
  • D. SELECT DISTINCT * FROM employees WHERE first_name <> NULL;
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
lucemqy
4 weeks ago
Selected Answer: C
Not valid to compare NULL to any value must use IS NOT NULL or IS NULL
upvoted 2 times
...
metallers
1 month, 3 weeks ago
Selected Answer: C
C is OK, last comment was a mistake.
upvoted 2 times
...
metallers
1 month, 3 weeks ago
Selected Answer: A
AD are the correct answers
upvoted 1 times
Mcromeo
5 days, 22 hours ago
do you think you can get rows with this expression first_name <> NULL ?
upvoted 1 times
...
...
CyberP
6 months, 2 weeks ago
Distinct should come first after select, also we use is not null so it is C.
upvoted 2 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