no duplicate values in sql code example
Example 1: how to get duplicate values in sql
• SELECT first_name, COUNT (first_name) FROM employees
GROUP BY first_name
HAVING (COUNT(first_name) > 1);
Example 2: how to query without duplicate rows in sql
SELECT DISTINCT col1,col2... FROM table_name where Condition;