SQL Query to remove Duplicate values from table. Session 3

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 12

  • @naim1234ful
    @naim1234ful Год назад +2

    I really loved to watch this session of fetching and removing duplicate records. Thank you vaia.

  • @yogeshpandita7828
    @yogeshpandita7828 10 месяцев назад +2

    It's really amazing to see you even covering small details. Thank you.

  • @nishapathania146
    @nishapathania146 11 месяцев назад +1

    Very nice explain sir

  • @heemozero4035
    @heemozero4035 6 месяцев назад

    ❤❤ thanks

  • @vinothrajr1221
    @vinothrajr1221 Год назад

    Awesome explain

  • @Mr.nikk62
    @Mr.nikk62 9 месяцев назад

    great Sir

  • @hanumanprasadvishwakarma9273
    @hanumanprasadvishwakarma9273 9 месяцев назад

    without using aggregate function how we can use group by clause
    it should give error

  • @utsavsagar6665
    @utsavsagar6665 10 месяцев назад

    Can we execute the beloq query?
    Delete from person
    Where email in(select email from person group by email
    Having count(email)>1)

    • @sunnypandita1498
      @sunnypandita1498  10 месяцев назад

      Hi Sagar, thanks for your comment. With your query, it will delete duplicate data including original data also. But we need only duplicate data to get removed. There are several ways to get the same result. I had showed the one, there are many other simple ways too which can be used.

  • @chazc080488
    @chazc080488 8 месяцев назад

    In mysql when trying to delete the duplicates, Im getting a message that says"table doesn't exist". How are you able to delete from a cte?

    • @sunnypandita1498
      @sunnypandita1498  8 месяцев назад

      Hi, thanks for your comment. Table doesn't exist means there is no existing table. So, first need to create the table with same structure which is used in the session and next we need to execute CTE and next query together to perform the deletion..