DISTINCT

DISTINCT removes duplicate rows from a query's results, so each unique value or combination appears only once. It goes right after SELECT.

Welcome to LearnCodingFast — free, interactive programming lessons covering Python, JavaScript, Java, C++, C#, SQL, HTML/CSS, React, AI and more. Every course is hands-on with examples you can run in your browser.

Loading interactive version…