de_notes

📚 DISTINCT

The DISTINCT keyword is used in SQL to return only unique values by removing duplicates from the result set.
It ensures that each returned row is different from the others.


🛠️ Basic Syntax

SELECT DISTINCT column1, column2, ...
FROM table_name;

Example

SELECT DISTINCT department
FROM employees;

Key Points

Additional Example

SELECT DISTINCT city, state
FROM customers;

🎥 Video Notes


📝 Problem Description

Describe the problem, challenge, or topic discussed in a video related to SELECT FROM.
What concept was explained or what exercise was solved?


DataBase Given


💻 My SQL Code

-- Write your SQL code attempt or solution related to SQL COMMAND
SQL COMMAND

🧠 Solution Code / Explanation

SQL COMMAND

Explanation - Explain what you learned, any key takeaways, or how you solved the problem related to COMMAND._


⬅️ Previous: JOIN WITH COMPARISON Next ➡️ JOIN WITH MULTIPLE KEYS