How To Find Duplicate Rows In a Table | SQL | Interview Preparation

Поділитися
Вставка
  • Опубліковано 2 січ 2025

КОМЕНТАРІ • 43

  • @sravaniB-u9z
    @sravaniB-u9z 4 місяці тому +6

    it didn't for my 'select *, count(*) from employees_1 group by id'
    when we take select *, it was expecting all cols should be present in group by as well

    • @saurabhkhadse8022
      @saurabhkhadse8022 4 місяці тому

      correct

    • @shivamrajguru6822
      @shivamrajguru6822 Місяць тому

      Or Use this : select * , count(*) over (partition by Email_id) as duplicate from employees_1

  • @ShravanKumar-me6iy
    @ShravanKumar-me6iy 2 роки тому +3

    Hai, madam ur classes r super.
    Ur voice is also super

  • @shaktijyoti4553
    @shaktijyoti4553 3 роки тому +5

    Simple and nice explanation,In next vlog could you please demonstrate about dropping out duplicate records

  • @etlqalabs5048
    @etlqalabs5048 3 роки тому +3

    Great explanation on dupes identification.

  • @bhadru3620
    @bhadru3620 3 роки тому +2

    Most important qns👍👍

  • @rainbowclouds66
    @rainbowclouds66 Рік тому

    Can you show me how to retrieve ONLY the duplicates, and show them all, even if identical? The result of the query should be a total of 4 lines - two for Rohit and two for Sanket. Thanks.

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

    Hi saloni madam any query to find duplicate data row without knowing the database means we know only data table name and column name

  • @rishabhrishu1602
    @rishabhrishu1602 3 роки тому +1

    thanqq ma'am please make some video on interview question

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

    If source count and distinct counts are not matching and I'm target count and distinct counts are matching how will we find what's missing btwn source and target

  • @bhadru3620
    @bhadru3620 3 роки тому +2

    Please do the video on corelated sub query and normalization 🙏

    • @CodeEra2020
      @CodeEra2020  3 роки тому +1

      We will try our best.. Thank you so much for watching

  • @joelesthak2551
    @joelesthak2551 Рік тому

    Write a query to report the IDs of all the products that were ordered there or more times in two consecutive years.
    Can you please send me the answer

  • @radhasakhi4546
    @radhasakhi4546 3 роки тому +3

    Nice video , very good Didi

  • @katojkalemba
    @katojkalemba Рік тому

    My question is , how do we display the total in frontend because you are using the query inside the database

    • @CodeEra2020
      @CodeEra2020  Рік тому

      For these you have to use any backend technology like java. so that you can connect your Frontend with database. Then you can show your result on fronted.

    • @katojkalemba
      @katojkalemba Рік тому

      @@CodeEra2020 am using php
      $sql1 = "select sigles, COUNT(*) AS totalnumber from tbl_student group by sigles ";

    • @katojkalemba
      @katojkalemba Рік тому

      that is my code so I have also used totalnumber as a tempolary email, but am wondering whether I can user echo count('totalnumber') to display in frontend

  • @palakmahajan9999
    @palakmahajan9999 3 роки тому +2

    Nice explain 🤗

  • @mohdfaizal9485
    @mohdfaizal9485 Рік тому

    Very nice explanation

  • @nagamanickam6604
    @nagamanickam6604 Рік тому

    Nice explanation

  • @arjunchaurasiya6709
    @arjunchaurasiya6709 3 роки тому +1

    Thanks a lot 😊

    • @CodeEra2020
      @CodeEra2020  3 роки тому +1

      So happy to know that you like it.. Thank you for watching

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

      @@CodeEra2020 your welcome ....

  • @ozgurdoganoglu9209
    @ozgurdoganoglu9209 9 місяців тому

    thanks for your help🙂

  • @ChandraSekhar-jx5hv
    @ChandraSekhar-jx5hv Рік тому

    Excellent Madam

  • @jaymahajan3871
    @jaymahajan3871 3 роки тому +2

    Nice yaar

  • @mrinalbera6080
    @mrinalbera6080 3 роки тому +1

    Nice mam ❤️

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

      Thank you so much for watching

  • @sourabhgaming1431
    @sourabhgaming1431 3 роки тому +2

    Osm😎

  • @madhukantaneema4736
    @madhukantaneema4736 3 роки тому +1

    nice didi

  • @mohdfaizal9485
    @mohdfaizal9485 Рік тому

    Great 👍🏻

  • @marvhan888
    @marvhan888 11 місяців тому

    best

  • @akshaypawar7449
    @akshaypawar7449 Рік тому

    Comp😊