Тёмный

SQL | Find duplicate records in table using COUNT and HAVING |Simple method to find duplicate record 

dataprojecthub
Подписаться 1,8 тыс.
Просмотров 11 тыс.
50% 1

In this video we see how to find duplicate records using COUNT and HAVING in SQL.
By using the COUNT function in the HAVING clause to check if any of the groups have more than 1 entry, those would be the duplicate values.
Using COUNT and HAVING is one of the easiest method to find duplicate values in SQL.
"Thanks for watching. If you liked this video, make sure to subscribe for more!”
#dataprojecthub
#data_project_hub

Опубликовано:

 

7 ноя 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@belindafraser2692
@belindafraser2692 3 месяца назад
Lovely clear explanation - thank you very much!
@dataprojecthub
@dataprojecthub 3 месяца назад
Glad you enjoyed it!😊
@tutsecret499
@tutsecret499 5 месяцев назад
Because I encounter a lot bad design database structure, usually there is no primary keys ID, etc. So how I set up the sql just to find Firstname and Lastname if there is duplicate of names. In excel is easy, but I want to learn in Access to find duplicates. So how to set up the sql when I don't have ID for the names. I could fix the database creating the ID, but sometimes the employer does not allow you to do it. When importing or copy and pasting large amount of rows of names, it's hard to spot duplicates. I know in Excel. but I want to know in Access. I want to see how many Mary Smith is repeating and show in another column(Duplicates) like 1(no duplicates) and the duplicates are , 2, 3, 4 and so forth. Why I need the numbers of duplicates, because I to highlight conditional formating to show any data that > 0 or and/or >1. Sometimes you don't want to see the duplicates separate, you want to see the duplicates together with the names not repeated like the 1 ones
@SK-wp4tm
@SK-wp4tm Год назад
Your voice is very low please use a good mic
@dataprojecthub
@dataprojecthub Год назад
Thanks for the suggestion. Sure, will definitely improve voice quality
Далее
Strongest man in the world !! 😱😱
00:16
Просмотров 3,7 млн
If You Like My Outfit Then You Are Subscribed 👀
00:12
Nice hiding.
00:43
Просмотров 3,6 млн
Stop using COUNT(id) to count rows
7:01
Просмотров 372 тыс.
Strongest man in the world !! 😱😱
00:16
Просмотров 3,7 млн