KnowledgeBoat Logo

Computer Science

DISTINCT and its counterpart, ALL, can be used together on single field in a SELECT statement.

SQL Queries

3 Likes

Answer

False

Reason — In SQL, DISTINCT and ALL cannot be used together on a single field in a SELECT statement. As DISTINCT eliminates duplicate rows from the results, while ALL includes all rows, including duplicates. Therefore, attempting to use them together on the same field would result in a syntax error.

Answered By

3 Likes


Related Questions