✨Link to my SQL e-book: imojo.in/rkajq9 ✨Link to 'Switch your career easily' e-book: imojo.in/1FL7KaG (Perfect for anyone willing to switch to a completely new field or to a different company in the Tech World)
@rajkiranboggala97223 жыл бұрын
I really appreciate your time and effort in sharing these (even though you are having cold)!! Thank you
@srinivasprasad77653 жыл бұрын
Ya true..👍
@ravindrabisht73723 жыл бұрын
That's called dedication...keep it up dear
@ShubhamKumar-mf4sg2 жыл бұрын
Having cold ..hahaha..nailed it bro
@tubepankajyou2 жыл бұрын
Such developers actually reach to top positions, appreciate it.
@karthikd21043 жыл бұрын
Seen so many videos in SQL messed up ...this one really understandable with clear explanation!
@tchelaa68949 ай бұрын
I have been stuck on this since yesterday. Thank you😎
@umaannamalai32053 жыл бұрын
Thank you for the clear explanations! You made the concepts simple to understand. I’m excited for new videos.
@adapass2 жыл бұрын
explanation is very clear by writing in paper which is unique in youtube. great job
@marvinmachitar72292 жыл бұрын
Wow! You are so good teacher. Was able to understand it more than other videos with fancy animation.
@MoodyVideoGraphies2 жыл бұрын
kitni awesome hai yaar... So well explained... calm and soothing...
@akashagarwal63904 жыл бұрын
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
@bhavanikandikondamatam59263 жыл бұрын
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?
@giridandi74802 жыл бұрын
Very nice.simple understanding way you explain so nice
@rajattalnikar61673 жыл бұрын
Thankyou so much. You've covered all the methods and discussed them in detail.
@rakeshgopidi40662 жыл бұрын
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
@saravananbhojan87502 жыл бұрын
Learned best way to query thanks for the video !!
@mastanshaik54793 жыл бұрын
Nice & simple way of understanding 👏👏 for new starters in sql ur videos are best .. thank you for ur efforts and time
@Rjjithin7773 жыл бұрын
Simply superb, doing a great job, simple and clear
@akashverma16403 жыл бұрын
Thank you very much for you efforts... Must to be known things👌👌
@mohansaivelagapudi9292 жыл бұрын
Thanks for Helping
@hidden5904 жыл бұрын
First method is easy to understand ...so I will go with the first method
@FitVisionTV3 жыл бұрын
First method will overload database performance. Avoid using select *
@ankiturmaliya7286 Жыл бұрын
very good explanation..
@MUSKAN08962 жыл бұрын
This was very helpful! Thank you so much
@naveenshagala31365 жыл бұрын
Nice explanation with such a calm voice.
@crackconcepts5 жыл бұрын
Thank you 😃
@deepakaggarwal86243 жыл бұрын
Excellent, your solutions are just great and easy to understand
@aeriesx47273 жыл бұрын
Absolutely brilliant explanation... Thank you so much..
@sushantpawar56353 жыл бұрын
शेंबडाचा त्रास होत असताना देखील खूप छान शिकवलंस🙏👍 thank you
@zafariqbalunknown97862 жыл бұрын
Your efforts helped me a lot Thankyou mam
@swapneelkambe20922 жыл бұрын
Good explanation
@DeepakMeena-kz9bu3 жыл бұрын
over partition example was really helpful
@techninja94613 жыл бұрын
Excellent Explanation.....This video is really helpful.
@husler74242 жыл бұрын
Watching in 2022, for placements as being CSE student. Thanks a lot, didi. Your explanation is just amazing.
@mudasar86293 жыл бұрын
Thank a lots !!! :) Hope to see more videos from you.
@nimmikcherian32423 жыл бұрын
Very detailed description... thanks
@oic_Oracle_integration_cloud2 жыл бұрын
SO SIMPLE AND EASY
@joshyjohn96363 жыл бұрын
Well explained, It will be most useful video in this topic..
@rajendrarajendra5832 жыл бұрын
Your explanation is superb. one small request what ever you explained can you explain in sql server . that is very use full to us.
@maxiejane4 жыл бұрын
So helpful thank you for sharing!
@hadireg3 жыл бұрын
a bit speedy but you're doing a great job!
@shivyogi8064 жыл бұрын
You have amazing, simple.way of teaching. God bless you and Thank you very much
@meditationandrelaxationmus7413 жыл бұрын
Thanks it is very important interview question
@richardconnolly42953 жыл бұрын
SUPER HELPFUL!
@maryamfatima58822 жыл бұрын
excellent explanation
@nausheen2923 жыл бұрын
Very well explained....Thank you 😀
@umeshgolla27305 жыл бұрын
Excellent explaination..
@crackconcepts5 жыл бұрын
Thank you!
@azharuddinluhar96673 жыл бұрын
3rd and 4th way will delete duplicate row from result set and not from actual table, now what to do for deleting duplicate rows from actual actual?
@veerulinganagoudar34562 жыл бұрын
It's really helpful
@boddanapalliavinash6418 Жыл бұрын
Very good explanation keep it up 👍
@akash_pal4 жыл бұрын
well Explained !! Thank you.
@bro_70794 жыл бұрын
kzbin.info/www/bejne/sHKcp2yio7VleKc
@shwetabudake61443 жыл бұрын
Very well explained
@mangamanasvi54854 жыл бұрын
Good Job!, Thank you.
@CarlosRivera-mp7mm2 жыл бұрын
Excelente muchas gracias
@sohailkat88673 жыл бұрын
Nice video, and it would be great if you could make a video on types of Analytical Functions in sql, thanks!
@vivekrahate25642 жыл бұрын
Thank u dear..
@Aryan-ly5ho4 жыл бұрын
Helped me a lot Thanks 😁
@Sriramlivz4 жыл бұрын
Nice Explaination. You have a lovely voice
@saurabhbenbanshi34604 жыл бұрын
thanks you explained well...
@digitalcode56852 жыл бұрын
THANKS
@ganeshstars12 жыл бұрын
your explanation is good. I am watching most of the videios. for me 1 st method is showing error missing expression.
@AmanKhan-ei4cg4 жыл бұрын
Thanks for such stuff🥰
@jaganjayakumar48744 жыл бұрын
Clear explanation keep doing more videos👍
@leesubiramaniyam27042 жыл бұрын
Explaining good & may be increase the volume (sound) better good
@music4u12352 жыл бұрын
so sNice tutorialt like that
@mrf72833 жыл бұрын
very good effort and I appreciate your clips. However I have a question; suppose application messed up and gave same ID to two (2) different unique valid name. eg. 5001 to ABC and 5001 to XYZ and we want to keep both that is they should exists in our resultant with 2 unique IDs. Please don't get me wrong I am not trying to trick you, I had this real situation once with thousands of rows and was stuck.
@MohanGonnabathula Жыл бұрын
In that scenario, you need to add ID, name in partition. DELETE FROM ( SELECT *, ROW_NUMBER() OVER (PARTITION BY ID, NAME ORDER BY ID) AS Rno FROM emp ) AS E WHERE Rno > 1; This query will delete duplicate rows from the "emp" table where duplicates are determined by the combination of "ID" and "NAME" columns, keeping only the first occurrence and removing the rest.
@shubhamanand13474 жыл бұрын
your videos are awesome please make more videos on different topics
@praveenvadde2783 жыл бұрын
Good explanation. Can please explain and show by executing in the system.
@tushardeepsingh49763 жыл бұрын
Hii.. Please clear one question in this video ..In CTE inner query ..you have not used * after select keyword ..you have directly written " select row_number()..." .... * aaega na after select ??
@HardikShah174 жыл бұрын
Perfect. Thanks.
@namratanikam75663 жыл бұрын
Well explained👍
@shubhamchoudhary54613 жыл бұрын
So informative...👍
@qaz_testzaq_test81383 жыл бұрын
Good work, thanks
@ravaliannaldas93202 жыл бұрын
Nyc video sister.
@muraliraj96583 жыл бұрын
Thank you.
@simranjeetsingh4101 Жыл бұрын
Thanku
@mrrishiraj883 жыл бұрын
Great videos.
@ybujji4 жыл бұрын
Thank you so much
@sathyasathyam69303 жыл бұрын
Super thank 🌹you
@mannu567 Жыл бұрын
Instead of MIN if we use Max then what will happen? I guess it will also remove duplicate
@norbycreation1851 Жыл бұрын
INSERT INTO temp_table SELECT DISTINCT * FROM old_table;
@rk-ej9ep3 жыл бұрын
Very nice
@ankittiwari-pw6nr4 жыл бұрын
Thanks
@rosonerri-faithful2 жыл бұрын
Can we use the MAX(ID) method?
@Pavankumar710363 жыл бұрын
Excellent
@labheshlalka96663 жыл бұрын
Why we can't use direct delete query whose count greater than 1
@mohammedyousuf19182 жыл бұрын
Super
@ravindrabisht73723 жыл бұрын
Your English is good
@dhineshrajendran23123 жыл бұрын
Much appreciated
@aditiarjun5192 ай бұрын
Hello mam, deleting using CTE throws the following error.... "Error Code: 1288. The target table cte of the DELETE is not updatable" how to resolve it?
@divyasnarayan18033 жыл бұрын
Gr8 wrk!
@dstar22115 жыл бұрын
superb...good job...
@crackconcepts5 жыл бұрын
Thank you!
@dreambig16684 жыл бұрын
Hi just one suggestion you first way will always not would the solution for routine. N in your second way we have to design table with identify type then you will be able to access
@yes-pg5dy3 жыл бұрын
Excellent madam pls do videos on power bi also pls
@foolchandsonariwal42032 жыл бұрын
Madam derived table delete allow nahi karta he only u can use cte to delete duplicate record.
@MrsBestTube2 жыл бұрын
Good
@sukritsen95305 жыл бұрын
Hello, I have a question, how to delete duplicate records with no unique key in mysql? Can this be done using the row_number function?
@chanduch89734 жыл бұрын
DELETE K FROM (SELECT *, ROW_NUMBER () OVER (PARTITION BY emp_id ORDER BY emp_id) AS RN FROM MyTable) K WHERE RN>1
@helmiboubaker27423 жыл бұрын
sorry but the third ways not working for me . this the query that i use delete from (select nom, row_number() over(partition by nom order by nom ) as count_num from fourniseurs)as tab where count_num >1; but the select query work fine i wander why is it not working i use workbench mysql :/
@mobileminimaster30153 жыл бұрын
delete from fourniseurs where nom IN (select nom from (select nom,row_number() over(partition by nom) as count_num from fourniseurs) ee where ee.count_num>1 );
@joshuasamuel58514 жыл бұрын
Superb
@88pianissimo902 жыл бұрын
I think row_number( ) works slower ... right? If you have millions of records then this will work slow.
@shankar88163 жыл бұрын
Ek different positive way me le gye aap lecture ko.. Wldone
@YPTechDATIA4 жыл бұрын
use insert into newtable select distinct * from oldtable; then delete * from oldtable; now insert into oldtable select * from newtable;
@saisumanthnagasuri77412 жыл бұрын
What happen if there are more than 50 columns with the duplicate records Instead of passing all the columns names to the partition by clause Is there any way to put * . Any thoughts?
@swapnilsingh85522 жыл бұрын
I am using ROW_NUMBER method to delete but it doesn't work...