Delete Duplicate Rows from SQL Table using 3 ways

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 15

  • @dshantanub27
    @dshantanub27 2 роки тому +1

    best explanation ever bro. You won't believe I was not understanding this concept untill I saw this video. TYSM bro

  • @sukumar44
    @sukumar44 3 роки тому +4

    Important advice for everyone watching this video: Please don't use the temporary table way to delete duplicates. By any chance, if your session is timed out you will loose all your data(backup). I have seen this happening in live projects. It not a good practice to truncate your main tables either.

    • @Chadner
      @Chadner 3 роки тому

      Thats what I thought too, even though it is the easier way it does feel reckless to just dump everything without a safe backup. What about creating a new real table with the same attributes, then copying the data to it and only then dropping the original table?

  • @snehitvaddi
    @snehitvaddi 3 місяці тому

    In CTE example, if you delete duplicates in CTE table how come select * from students have no duplicates? Is CTE referencing to students table? And why there is no row number coulmn in students table?

  • @relangirama
    @relangirama 2 роки тому +1

    nice explanation

  • @movingcloud5253
    @movingcloud5253 2 роки тому +1

    Nice one 👍👍👍👍👍❤️❤️❤️

  • @shashanksingh3838
    @shashanksingh3838 2 роки тому

    it's throwing an error:
    Error Code: 1288. The target table remove_duplicate of the DELETE is not updatable

  • @RoarMaddy
    @RoarMaddy 2 роки тому +1

    Can we use rowid to delete duplicate?

    • @GetSetSQL
      @GetSetSQL  2 роки тому

      sure we can use rowid to delete duplicate records .. this can be achieved by using subquery or CTE

  • @jeetendrasahani1428
    @jeetendrasahani1428 2 роки тому

    when use insert into table _name
    select * from # table _name - it is showing error like not supply and match values

  • @حمدالغامدي-ح9د
    @حمدالغامدي-ح9د 2 роки тому

    What is the application u use?? Thanks

  • @karandholakia1555
    @karandholakia1555 3 роки тому

    Which tool is this to run queries ?

  • @mettupallimuneendrareddy9753
    @mettupallimuneendrareddy9753 2 роки тому

    Waste