DELETE DUPLICATE ROWS FROM A TABLE IN SQL || 4 ways

preview_player
Показать описание
In today's video, we'll learn how to delete duplicate rows from a table in SQL.
4 following ways are shown:
1) remove duplicate rows using a temporary table
2) remove duplicate rows using auto ID
3) remove duplicate rows using row_number()
4) remove duplicate rows using CTE

Thank you!

✨Work related mails can be sent on:

✨If you appreciate my work and would like to donate to support our channel, you can do so here:
Рекомендации по теме
Комментарии
Автор


(Perfect for anyone willing to switch to a completely new field or to a different company in the Tech World)

crackconcepts
Автор

I really appreciate your time and effort in sharing these (even though you are having cold)!! Thank you

rajkiranboggala
Автор

Seen so many videos in SQL messed up ...this one really understandable with clear explanation!

karthikd
Автор

I have been stuck on this since yesterday. Thank you😎

tchelaa
Автор

explanation is very clear by writing in paper which is unique in youtube. great job

adapass
Автор

Thank you for the clear explanations! You made the concepts simple to understand. I’m excited for new videos.

umaannamalai
Автор

It's a great post Sadia, no matter how many years of experience we have, it's always a good revision for any one

# Additional Reference

There are also other ways to restrict the duplicates

1. UNIQUE
2. UNION
3. ROW_NUMBER | RANK () | DENSE_RANK () - Analytical Function
4. INTERSECT
5. MINUS
6. ROWID | ROWID + CORRELATED SUBQUERY
7. GROUP BY

rakeshgopidi
Автор

Wow! You are so good teacher. Was able to understand it more than other videos with fancy animation.

marvinmachitar
Автор

Mam it would be great if you can take up topics or concepts which are really important like this though not much frequently asked in interviews and also it is useful for an engineer to know all these as well

akashagarwal
Автор

kitni awesome hai yaar... So well explained... calm and soothing...

MoodyVideoGraphies
Автор

Nice & simple way of understanding 👏👏 for new starters in sql ur videos are best .. thank you for ur efforts and time

mastanshaik
Автор

Hello madam..

I have doubt in using temporary table..

Can insert distinct values in new table
Drop the old table
Rename new table as old table?

bhavanikandikondamatam
Автор

Very nice.simple understanding way you explain so nice

giridandi
Автор

Your explanation is superb. one small request what ever you explained can you explain in sql server . that is very use full to us.

rajendrarajendra
Автор

First method is easy to understand ...so I will go with the first method

hidden
Автор

Learned best way to query thanks for the video !!

saravananbhojan
Автор

Thankyou so much. You've covered all the methods and discussed them in detail.

rajattalnikar
Автор

Simply superb, doing a great job, simple and clear

Rjjithin
Автор

शेंबडाचा त्रास होत असताना देखील खूप छान शिकवलंस🙏👍 thank you

sushantpawar
Автор

Nice explanation with such a calm voice.

naveenshagala