Find and remove duplicate records in a table | delete duplicates from a table

preview_player
Показать описание
#etlqalabs #etl #sqlinterviewquestionsandanswers #linux

How to remove duplicates from a table in oracle ? | 2 ways to delete duplicate record from a table
1) Using Temporary table
2) using max(rowid)
3) using min(rowid)

Playlists for your reference:
ETL Testing Tutorial for begginers and advanced level :

SQL Tutorial for begginers and advanced level :

Linux Tutorial for beginners and advanced level:

Data Warehousing Tutorial for beginners and advanced level:

Hey Guys,
If you’re enjoying this video and you’d like to support this channel, please do to consider subscribe this channel! It might seem small, but hitting that subscribe button helps alot and means more contents in future.
Рекомендации по теме
Комментарии
Автор

Tons of thanks no words to say you are explaining each and every topic so in-depth with simple way.

saravanagovindaswamy
Автор

very good explanation sir, thank you for helping us all.

venkataharishp
Автор

Hello sir, I am watching all the videos in this playlist from the beginning. your explanation is very clear. Got a doubt while watching this video, while grouping by what should be the parameter to chose the columns? in this video you have chosen empno, empname and deptno under group by condition, can you please say why is that so?

gagandeepkrishna
Автор

just now ATTENDED Infosys interview they asked the same question?

how to remove DUPLICATE FROM TO YOU SIR...🤢

CAN YOU DELETE THE ALL DUPLICATES WITH SINGLE LINE QUERY?----struggled a bit?

STEAVEJOBS-kbdx
Автор

Can you please tell me what is Decode and case

pmk_full_facts_
Автор

Hello from removing duplicates how to select records other than duplicates, can u tell me the query
For eg: 1
2
2
3
4
4
From above table I want only 1 and 3 records, o/p is 1
3
How will I get this??? Please share video about this type of some interview questions..?

prathibhavalathati
Автор

Hi Sir, how to remove duplicate with certain conditions? like I need to delete 4 records out of 5 from target having name=error.

vineetaverma
Автор

Hello Sir, Can we use row_number() Over ( partition by emp_id) ?? Please check if i have written correctly ?
ps: (Not executed query)


Delete from (
select emp_id, emp_name, emp_salary,
Row_Number() Over ( partition by emp_id) as rn) a where rn> 1;

spoilerskid
Автор

Hiii sir
How to find out duplicates
We have 100 columns in the table. I want duplicates with 100 column names

venkateshvenky