SQL - Merge

This video covers how to use the merge statement with t-sql.

Пікірлер: 50

  • @chriskeo392
    @chriskeo392 Жыл бұрын

    Crushed it Visuals + well paced script + audio on point 👑 Content king!

  • @ottmiller4028
    @ottmiller40283 жыл бұрын

    James, your explanations are lucid and thorough. Thank you for your efforts.

  • @cidaiha
    @cidaiha11 ай бұрын

    Thank you, PERFECT EXPLANATION !

  • @anawadtom6011
    @anawadtom60112 жыл бұрын

    Simple, clear explanation. Thanks!

  • @abcxyz6606
    @abcxyz66063 жыл бұрын

    Wow, this is very neat. TY for these.

  • @apoorvavanaparthi8853
    @apoorvavanaparthi88535 ай бұрын

    Thank you so much for this clear and concise explanation!!!!!!! 🙏

  • @bobocrazvan-marius801
    @bobocrazvan-marius8012 жыл бұрын

    Very helpful video, thank you for the explanation!

  • @makeittrades5750
    @makeittrades57503 жыл бұрын

    wow what a cool tutorial, loved it!

  • @Circumvenscion
    @Circumvenscion2 жыл бұрын

    Well explained and concise. Please do more of these type of videos, you're great at it!

  • @JamesOliver

    @JamesOliver

    2 жыл бұрын

    Thank you for the kind words. Much appreciated. :)

  • @briancanfield2968

    @briancanfield2968

    Жыл бұрын

    Agreed

  • @sumit-visatotravel8780
    @sumit-visatotravel87803 ай бұрын

    Very well explained!

  • @RC-ql5lp
    @RC-ql5lp3 жыл бұрын

    Great tutorial. I have learn a new command in t-sql.

  • @emrc9777
    @emrc9777 Жыл бұрын

    Excellent video! ❤

  • @abbasmuhammed214
    @abbasmuhammed21410 күн бұрын

    thank you so much, I appreciate that, and it was very useful

  • @RainSoundsToConcentrate
    @RainSoundsToConcentrate7 ай бұрын

    Amazing video ,ty 😎

  • @mohammadhaque1873
    @mohammadhaque18732 жыл бұрын

    Thank you, very nicely explained.

  • @apack1004
    @apack10043 жыл бұрын

    thanks for your great teaching

  • @thomasjordan454
    @thomasjordan4542 жыл бұрын

    Awesome video thanks

  • @CrazySw3de
    @CrazySw3de3 жыл бұрын

    Great video, easy to understand explanation with clear examples and nice editing.

  • @dmitryvlasov931
    @dmitryvlasov9313 жыл бұрын

    Good job!

  • @Thle009
    @Thle009 Жыл бұрын

    Thank you for a great tutorial video. The fact that it is still relevance today 2 years later showing just how powerful your video is. Would it be possible for you to make a video on the output and the MergeResults table?

  • @fo1487
    @fo14872 жыл бұрын

    I liked your video, ty

  • @Raj-ph1py
    @Raj-ph1py3 жыл бұрын

    Excellent tutorial

  • @JamesOliver

    @JamesOliver

    3 жыл бұрын

    Much appreciated. :)

  • @maheshbabu6925
    @maheshbabu69252 жыл бұрын

    Nice explanation James

  • @JamesOliver

    @JamesOliver

    2 жыл бұрын

    Appreciate it very much. :)

  • @israell9320
    @israell93203 жыл бұрын

    Awesome!! thanks

  • @Renad-bm3ph
    @Renad-bm3ph2 жыл бұрын

    thank you angel

  • @iliashterev38
    @iliashterev385 ай бұрын

    I was just about to say this tutorial is awesome and then you went onto the deleted and inserted tables without taking a moment to walk trough the target table after the merge. And I have learned so far that deleted and inserted tables are available only within the scope of the triggers. Which confused me further.

  • @romeokamil
    @romeokamil2 жыл бұрын

    wow, they were very quick 10 minutes :)

  • @sayfriseup172
    @sayfriseup172 Жыл бұрын

    Any Idea about 'Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "French_CI_AS" in the equal to operation.

  • @chriskeo392
    @chriskeo392 Жыл бұрын

    More advanced merge videos?!? And more on how to leverage OUTPUT

  • @rntech4541
    @rntech4541 Жыл бұрын

    thanks so much sir. This Solved my proble which made me busy with it since a week,,but could you tell me how to invite this query in c#?

  • @sreelakshmia6762
    @sreelakshmia6762Ай бұрын

    Do you have same in oracle?

  • @TheSomestuffs
    @TheSomestuffs3 жыл бұрын

    Good...

  • @rapo107
    @rapo1073 жыл бұрын

    James... Missing your MSTR videos a lot. Please make videos..🙏

  • @JamesOliver

    @JamesOliver

    3 жыл бұрын

    MicroStrategy video coming Monday

  • @PedramRasti
    @PedramRasti3 жыл бұрын

    Thank you James! Any idea why a syntax error near the OUTPUT may come up. I did exactly what you did but somehow for the output part i get a syntax error

  • @tihanapolezari7638

    @tihanapolezari7638

    2 жыл бұрын

    Because you need to create a new table or temporary table with CREATE statement which contains fields from both tables, including the field for Action. Let's say that target and source have next table structure: BusinessEntityID int, AccountNumber nvarchar(10), Name nvarchar(10), CreditRating int I need to create table #MergeResults like: Create table #MergeResults (BusinessEntityID int, AccountNumber nvarchar(10), Name nvarchar(10), CreditRating int, ActionTaken nvarchar(10), new_BusinessEntityID int, new_AccountNumber nvarchar(10), new_Name nvarchar(10), new_CreditRating int) then the last statement or OUTPUT deleted.*., $action, inserted.* into #MergeResults will work. Hope it will help someone. 😄

  • @MpT_Head

    @MpT_Head

    Жыл бұрын

    @@tihanapolezari7638 This did help a lot, thanks. James probably should have shown the temp #MergeResults table and also explained how the Output works to put the old and the new data in the correct columns. I haven't really worked with Triggers before so when he said 'If you've worked with Triggers before...' it was remiss not to explain for those who hadn't.

  • @LearnSalesforceWithPiyush
    @LearnSalesforceWithPiyush2 жыл бұрын

    How to merge two stored procedures in mysql.

  • @DeekshaKatiyar-wn7ub
    @DeekshaKatiyar-wn7ub Жыл бұрын

    Hey I am facing issues in merge. Getting an error saying "Merge is not valid at this position"....

  • @henrygrip8486
    @henrygrip84863 жыл бұрын

    Why did the result showed you the row with the id 1524 when that one doesnt exist in either of the two original tables.

  • @romeokamil

    @romeokamil

    2 жыл бұрын

    hi did select on top 7 from source table, 1524 was not in top 7 but matched the values for the merge.

  • @johnli6706
    @johnli6706 Жыл бұрын

    Nice presentation, but you missed the update when only CreditRating changes.

  • @FloKluge
    @FloKluge Жыл бұрын

    Cool video, but the merge did not update a rating change from 1 to 2 or from 2 to 1.

  • @harshalpatel555
    @harshalpatel5553 жыл бұрын

    Hey James How do i get this script to practise

  • @JamesOliver

    @JamesOliver

    3 жыл бұрын

    Let me check if I can find it

  • @thedatastoryteller5692
    @thedatastoryteller56923 жыл бұрын

    Tech people can learn to actually ARTICULATE from you as they need your coaching. I work with tech people and NEVER understand their explantions.