Skip to main content
Journey Uncommon Logo
JourneyUncommon
easySQLDISTINCTSingle-choice MCQ

Column `score` holds 90, 90, NULL, 75. A developer expects these two queries to always match. Are they equivalent?

-- Query A SELECT COUNT(DISTINCT score) FROM grades; -- Query B SELECT COUNT(*) FROM (SELECT DISTINCT score FROM grades) t;