Examine the description of the EMPLOYEES table:
Which statement will execute successfully, returning distinct employees with non-null first names?
Examine the description of the EMPLOYEES table:
Which statement will execute successfully, returning distinct employees with non-null first names?
The correct SQL statement will successfully execute and return distinct employees with non-null first names is: SELECT DISTINCT * FROM employees WHERE first_name IS NOT NULL. This query ensures that only rows with non-null first names are selected, and the DISTINCT keyword ensures that duplicate rows are excluded.
Not valid to compare NULL to any value must use IS NOT NULL or IS NULL
C is OK, last comment was a mistake.
Distinct should come first after select, also we use is not null so it is C.
AD are the correct answers
do you think you can get rows with this expression first_name <> NULL ?