QuestionQ102

VerifiedRestricting and sorting data

Examine the description of the EMPLOYEES table:

Question Image

Which statement executes successfully and returns distinct employees whose first names are non-null?

Explanation

DISTINCT is specified immediately after SELECT and removes duplicate rows from the selected result. A null value must be tested with IS NOT NULL; comparisons such as <> NULL evaluate to UNKNOWN, so they do not select non-null rows.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!