58 Merge Statement in SQL Server

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

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

  • @marcq1588
    @marcq1588 Год назад +1

    Nice tutorial about "SQL Merge". Thank you for your sharing :)

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

      Thank you Marc for appreciating.

  • @urbanpro2494
    @urbanpro2494 Год назад +1

    Great explanation thank you so much for hardwork.. I watching your videos getting confidence.. one question I have how to send email for more than one person by using script task.. Thanks in advance

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

      Hi, at the moment I don't have a video on sending email to multiple people, you can watch this video where she showed how to send email to multiple people
      ruclips.net/video/wK93ZE78cew/видео.html

  • @dbamentorparag
    @dbamentorparag 2 месяца назад

    Thanks for your time I am watching from #Adelaide #Australia

    • @learnssis
      @learnssis  2 месяца назад

      Thanks for your time Sir.

  • @hrushikeshkhonde7079
    @hrushikeshkhonde7079 4 месяца назад

    Very Helpful vlog ... thanks sir 🙏

    • @learnssis
      @learnssis  4 месяца назад

      You are most welcome.

  • @vickypatekar9532
    @vickypatekar9532 7 месяцев назад +1

    Thank you so much sir for vedios and SQL script🙏

    • @learnssis
      @learnssis  7 месяцев назад

      Thank you Vicky.

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

    Great as usual.
    One request plz if you can do that.
    How to update data between two servers so that they kept identical?
    Thank you.

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

      Thank you. if you can create a linked server from one server to another server and then you can use the Merge statement to update data from one server to another server for a sql table. You can also configure replication between 2 servers to keep all tables in Sync or you can create SSIS packages those can sync data from one server to another server.

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

      @@learnssis Highly appreciated and such tutorial for all or some of those solutions you mentioned are NEEDED.

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

    Can you explain implement SCD type2 concept using merge query.

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

    Hi Anil. We should use merge statments in excute SQL task in SSIS

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

      yes we can use it in Execute sql task.

  • @shahiinalam
    @shahiinalam Год назад +1

    very nicely explained, Thanks

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

      Thank you Shahin Alam for appreciating this.

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

    can you please also do SCD2 implementation please which works for all scenarios

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

      I have done SCD type 2 in SSIS.
      ruclips.net/video/7uj463csru0/видео.html

  • @MVinodKumar-tt1tu
    @MVinodKumar-tt1tu 10 месяцев назад

    Hello Sir,
    So we have to maintain the staging table empty sir or it can hold data also. As Merge can do all three operations right sir?
    so any reason for making staging table empty each time.
    And when we load data from source to SSIS for example so when the data is in SSIS until loading to target tables or SQL Server then it can be called as staging sir?

    • @learnssis
      @learnssis  10 месяцев назад +1

      it depends on the kind of requirement in the project. If you just want to insert\update data from staging table to destination table, then you should empty the staging table in the beginning otherwise it will end up having duplicate records. Sorry I did not get your second question.

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

    great presentation. and well explained

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

    We can do scd type 2 with merge statement in sql server. But in oracle, how to do insert after update when matched

    • @learnssis
      @learnssis  6 месяцев назад +1

      Sorry I have not worked with Oracle, thus not sure about that. Can you try chatgpt and see if it gives any useful information ?

    • @dbamentorparag
      @dbamentorparag 2 месяца назад

      @@learnssis Google replaced with ChatGPT :)

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

    What is difference between merge statment and temporal table

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

      They both are different. Merge statement is used to insert\update data from one table to another table in sql server, while temporal tables are used to keep historical data of a table.

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

      @@learnssis ok thank you sir

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

      @@arifamakandar2437You are most welcome Arifa.

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

    Hi in sql i have faced a one question , In a table we have the A,10000 b,5000 c ,2000, again A ,2000 now we need to find the height salary in table and the result should be A, 12000 b,5000 c,2000. can u make a video on this please

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

      This is will be your query
      create table test(Name varchar(100), Salary int)
      go
      insert into test
      values('A',10000),('B',5000),('C',2000),('A',2000)
      go
      select Name, sum(Salary) as TotalSalary from test group by Name

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

      Thanks