3 Ways To Find Duplicate Rows In Sql | SQL Query To Find Duplicate Records [2021]

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2024

ความคิดเห็น • 34

  • @enriquejpsa
    @enriquejpsa 2 ปีที่แล้ว +1

    This helped me find a unique constraint at my employer's Production environment. Thanks for posting!

  • @sayalikarale6125
    @sayalikarale6125 2 ปีที่แล้ว +1

    very helpful.thanks. you explained in easy n clear way

  • @manjutharak
    @manjutharak ปีที่แล้ว +1

    Thanks for helping to others from your channel keep it up😀

    • @LearningwithRohan
      @LearningwithRohan  ปีที่แล้ว

      Welcome! Check out my website talendpro.com and download my mobile app!

  • @tnmyk_
    @tnmyk_ ปีที่แล้ว

    Great explanation! Thanks for making this video! The timestamps are useful as well!

  • @inhlam5909
    @inhlam5909 2 ปีที่แล้ว +3

    Ways to find duplicates:
    1. Group by and Having
    2. Window function (cte, row number)
    3. Analytical (case, when, lag)

  • @Naru_NNN
    @Naru_NNN 2 ปีที่แล้ว +1

    Good info

  • @paxi5765
    @paxi5765 2 ปีที่แล้ว +1

    hello,when i'm using many left join i get duplicate rows. and how to tuning it without to using row_number to delete that

  • @aayushjoshi2097
    @aayushjoshi2097 2 ปีที่แล้ว +1

    Hi Rohan, thank you for sharing the knowledge with such a great content. Your videos helped me for preparing the interviews, thank you for that as well.
    Following is the question that I am thinking about for a long time, please reply back if possible with a recommended solution -
    Suppose we have a target (file/table) having 120 columns/fields in it and apart from the primary/unique key columns, say around 70 fields can be update. Any number of fields from these 70 can be update in a single run. So how can we know due to which particular fields the update has occurred? or in other words, if we want to find only those fields which are changing its value from the previous run for a set of records.
    Thanks in advance

    • @LearningwithRohan
      @LearningwithRohan  2 ปีที่แล้ว

      This is possible but with custom solution. Inside tmap you need to lookup against target first and then compare values, if something is changed, you may want to capture the field name and keep appending and add it to a custom column at the end or capture it a separate table..

    • @aayushjoshi2097
      @aayushjoshi2097 2 ปีที่แล้ว

      @@LearningwithRohan "Comparing the main and lookup fields in tMap is feasible only when there is 20-30 or may 50 fields. But if the no.of fields needs to compare is more than that it will be difficult to apply these many conditions manually". This type of replies I had got in past during my interviews so I thought there might be some other ways as well to do this. But I don't know if we have anything else to do here.
      BTW Thank you very much Rohan 😊
      Please keep posting such meaningful and learning contents for the users.

  • @TaRoKiKa
    @TaRoKiKa 11 หลายเดือนก่อน

    Logic should build to identify each record having any duplication if so then skip those records instead of failing the job and dump those failed records in separate table . Can we achieve this in Talend using the components?

    • @LearningwithRohan
      @LearningwithRohan  11 หลายเดือนก่อน

      Yes possible multiple ways - sort - aggregate - tmap.. download my app from talendpro.com

  • @beautifullectures
    @beautifullectures ปีที่แล้ว

    Hi, how to reconcile quickly?
    And how to find out if the reference IDs are matching or not quickly?

    • @LearningwithRohan
      @LearningwithRohan  ปีที่แล้ว

      Download my mobile app from talendpro.com for free group chat and free resources

  • @sarv-shreshth
    @sarv-shreshth 2 ปีที่แล้ว +1

    Wow, loved it man. Superb way taught🫡❤

  • @chandrakanthpadi
    @chandrakanthpadi 11 หลายเดือนก่อน

    Can we do it by self join?

  • @vijaykumar-kc7dt
    @vijaykumar-kc7dt 3 ปีที่แล้ว

    Can you post more videos on Talend on cloud environment.

  • @divityvali8454
    @divityvali8454 3 ปีที่แล้ว +1

    Can you make one mini project in Talend sir

  • @alagu1992
    @alagu1992 2 ปีที่แล้ว

    What is cte_src?

  • @joshitharun
    @joshitharun 2 ปีที่แล้ว

    How can we delete rows using CTE and rownum