Oracle PL SQL interview question | Oracle MERGE statement | oracle merge statement example

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

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

  • @dattavaraprasadreddy2863
    @dattavaraprasadreddy2863 4 года назад +14

    thanks for doing these kind of videos sir...because of this channel only i got a job ,learned lot of concepts ,keep it up Sir...@@@thank you

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Its my pleasure, thanks for your comments, all the best 👍👍💐💐

  • @avinashbethi1410
    @avinashbethi1410 2 года назад +1

    Thank you so much for explaining. As a part of merge , can we delete record on target table if there is no record on source table with the matching emp.id ?

  • @gaddainaresh7960
    @gaddainaresh7960 3 года назад

    So much of efforts putting specially on oracle sql plsql videos .. you are very great man..thank you so much siva garu

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Thank you very much 🙏🙏💐💐

  • @vivektarab1959
    @vivektarab1959 22 дня назад

    Start - 0:08
    0:54 - Now what we have to do is
    1:35 - Subquery Update Statement
    3:19 - Now what he is going to do
    6:11 - Using Merge Statement
    08:22 - Saari queries ek sath
    10:06 - Delete krna h tohh
    13:03 - One Imp Topic

  • @chandudevarapu1578
    @chandudevarapu1578 4 года назад +1

    Hi sir... Your way of explanation is so good.. I have one question regarding sql tuning.. If one select query is running 4 to 5 hrs.. How can you find issues in that select stmnt without going to execution plan

  • @tummalanagarani6423
    @tummalanagarani6423 2 года назад

    Very well explained. I am looking for ETL concepts and transformations explanation. Couldn't find in your videos. Are there any? Would be of great help if there are any

  • @dhirajshinde4752
    @dhirajshinde4752 4 года назад +1

    Thanks for making the concept clear !! 👍

  • @mahadevgolabhanvi
    @mahadevgolabhanvi 4 года назад

    Superb explanation Siva, all videos are very informative and helpful 👍👍👌👌👌 thank you 🙏🏻

  • @noorullabaig3756
    @noorullabaig3756 3 года назад

    Super explanation sir. Thank you so much

  • @kdausu90
    @kdausu90 3 года назад

    Very nice! I was using temp tables to accomplish this same task

  • @menaceasif
    @menaceasif 3 года назад

    Very nice video sir, thank u so much... God bless you 🙏😊🙏

    • @SivaAcademy
      @SivaAcademy  3 года назад

      My pleasure, thank you 💐🙏🙏🙏

  • @krishnaharshiniyallampalli1220
    @krishnaharshiniyallampalli1220 3 года назад

    Learnt lot of concepts sir. I really admire your teaching. Please do videos on performance tuning indetail more. And also on nested loop, hash, merge joins pls.

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Thank you bro, sure please stay tuned, will add to upcoming videos

  • @dasubabuch1596
    @dasubabuch1596 4 года назад

    Ur explaination was awesome.

  • @kiranshahane1095
    @kiranshahane1095 4 года назад

    Sir you are simply great we have 👍🙏

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Thank you 🙏🙏🙏💐💐💐

  • @kunuturuaravindareddy5580
    @kunuturuaravindareddy5580 2 года назад

    Hello Siva,it was good video.i have a doubt and it was question too for me in an interview ,how general insert is different from merge
    what is the difference between them when to use what ,we can generally use insert into ,though it comes with three functionalities in one statement how it differs from previously existing insert,update.

  • @KohinoorEntertainmentsDivit
    @KohinoorEntertainmentsDivit 3 года назад

    You are doing a great job. Do you conduct any online classes ? Will be glad to join it.

  • @muralisethi
    @muralisethi 3 года назад

    Thanks siva for detailed explanation. Can we update more than one row?

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Yes Murali, you can, records that matches the join condition

  • @SanjayKumar-yh8fd
    @SanjayKumar-yh8fd 3 года назад

    this vedio help me to learn the marge statement ,so thanks for the same

  • @bharathibalakrishnan6521
    @bharathibalakrishnan6521 4 года назад

    superb Siva! very good explanation..

  • @Yogeshkumar0824
    @Yogeshkumar0824 3 года назад

    thanks for ur valuable help to improve ourselves.
    I have a question that how to create a table using a mask means I want to insert a table value with the mask. ie means want an output like 4 digits first/last pad from the account number.

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Give me sample input and expected output please

  • @shanawazali6161
    @shanawazali6161 3 года назад

    Both the table have all Column name same it's necessary condition ?or if I have only one Column name same both the table then also I will be apply merge statement ?

  • @masalhemant4255
    @masalhemant4255 4 года назад +1

    Sir plz upload vedio forLIMIT clause and how to handle bulk exception

    • @SivaAcademy
      @SivaAcademy  4 года назад +1

      Sure, please stay tuned, next video in plsql performance tuning series is about handling exception in bulk collection, please stay tuned

    • @masalhemant4255
      @masalhemant4255 4 года назад +1

      Thank you...

  • @rk-ej9ep
    @rk-ej9ep 3 года назад

    Thank you soo mich sir....

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

    good explained

  • @hemanthraj6054
    @hemanthraj6054 3 года назад

    will u explain same merge with using pl sql code???

  • @kuldeepgupta8526
    @kuldeepgupta8526 4 года назад +1

    hii Siva i need below ans with explanation
    If same kind of logic we put in function as well as procedure then which one will be faster.

    • @SivaAcademy
      @SivaAcademy  4 года назад

      I dont think there will be much difference in execution

    • @KISHOREKUMAR-yv2sd
      @KISHOREKUMAR-yv2sd 2 года назад

      @@SivaAcademy bro can we have merge statement in procedures without using execute immediate.

    • @SivaAcademy
      @SivaAcademy  2 года назад

      Yes bro, you can have merge statement like any other dml statement inside procedure

  • @rupeshdarwade7846
    @rupeshdarwade7846 4 года назад

    Nice explanation, Thanks...

  • @parthparth8680
    @parthparth8680 3 года назад

    Good....!

  • @devavarapusrinivasurao2229
    @devavarapusrinivasurao2229 4 года назад

    Hi sir your videos are more informative.if it is possible please upload performance tuning videos tq sir

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

    Is there any way to maintain the sort order in the MERGE INSERT operation?

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

      Can you please give me sample data and expected output

  • @debadattabeura6403
    @debadattabeura6403 4 года назад

    Nice explaination sir

  • @rammurthybhukya9069
    @rammurthybhukya9069 3 года назад

    Can we insert records in 3rd table instead of Target table using Merge Statement with clause( When Not matched). Please advise.

  • @hc6008
    @hc6008 4 года назад

    Superb, excellebt vid..

  • @masalhemant4255
    @masalhemant4255 4 года назад

    Nice explanation...Sir...👍👍👍❤️❤️

  • @dreamheaven4661
    @dreamheaven4661 3 года назад

    Thank u shiva

  • @gajendras7528
    @gajendras7528 3 года назад

    What combinations can I use in merge statment?

  • @sindhupinky4959
    @sindhupinky4959 4 года назад

    Sir Can you please post some videos on Unix interview Question and answers

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Sure, I will start, please send me few questions you faced in interviews

  • @mrarpitmore6189
    @mrarpitmore6189 4 года назад

    Super

  • @siprabehera4680
    @siprabehera4680 3 года назад

    Can we write join query in using clause ?can we merge more than 2 tables.like joining of two table will update in target table.how to write?

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Yes, you can, use the subquery instead of source table, however the target table should be only one table

  • @dhanrajshunkalwar7098
    @dhanrajshunkalwar7098 3 года назад

    How can we achieve SCD 1, 2 using plsql ?

  • @srarts6990
    @srarts6990 3 года назад

    Hi Sir,
    I'm having one issue with merge statement, i wrote a merge state ment like below
    Merge into trgt_table t1
    Using src_table t2
    On (t1.id=t2.id)
    When matched then
    Update set t1.name=t2.name;
    But in my scenario there are multiple duplicate values are there in t1.id and t2.id columns because those are the referenced columns from another table.
    When i execute this script I'm getting error
    "Ora-30926 unable to get a stable set of rows in the source table"
    Can you please help me out on this query

  • @pra463
    @pra463 3 года назад

    hi Sir facing Error "ORA-30926: unable to get a stable set of rows in the source tables" while merging the data of 2 tables having same structure...

  • @pawansonole9127
    @pawansonole9127 4 года назад

    Sir i have question
    Ipl table having team name and player name
    Mumbai rohit
    Mumbai pollard
    Mumbai boult
    Delhi dhawan
    Delhi rabada
    Result should be
    Mumbai delhi
    Rohit dhawan
    Pollard rabada
    Boult null
    Note : not using pivot function
    Answer here itself thanks

  • @hanumanthu1246
    @hanumanthu1246 4 года назад

    if update record only have the resigned flag= Y means ?

    • @SivaAcademy
      @SivaAcademy  4 года назад +1

      Expectation is , Those records that marked as Y , should be removed from target table

    • @hanumanthu1246
      @hanumanthu1246 4 года назад +1

      @@SivaAcademy Thanks

  • @AjithKumar-vk1fw
    @AjithKumar-vk1fw 4 года назад

  • @subhashisoracle3944
    @subhashisoracle3944 4 года назад

    don't view only keep like and subscribe

  • @Satheesh9491
    @Satheesh9491 4 года назад

    Hi Siva Garu,
    How to get Second Highest Average salary , Department wise ?
    Deptno Avg(Sal)
    10 1566
    20 2175 ---> I need to display this department(Second highest average salary )
    30 2916
    Can you please share sql query for above question ?

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Sure bro, will cover in upcoming video please stay tuned

    • @Satheesh9491
      @Satheesh9491 4 года назад

      ​@@SivaAcademy Can you share the video link

    • @SivaAcademy
      @SivaAcademy  4 года назад +1

      I am yet to post, will try to post in couple of weeks, please stay tuned