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

  Рет қаралды 36,779

Siva Academy

Siva Academy

3 жыл бұрын

#SivaAcademy
Oracle PL SQL interview question | Oracle MERGE statement | oracle merge statement example
--------------------------------------------------------------
This channel is for learning Oracle SQL, PLSQL, DATABASE concepts, MYSQL, ETL, Mongo DB, Python,UNIX and related technologies.
/ sivaacademy
Home page: sivakacademy.blogspot.com/
Telegram Channel : t.me/SivaAcademy
--------------------------------------------------------------
Home page: sivakacademy.blogspot.com/
List of all oracle SQL/PLSQL Interview questions sivakacademy.blogspot.com/p/s...
List of all PLSQL Scenario based Interview Questions sivakacademy.blogspot.com/p/p...
List of all Subscriber questions and answers sivakacademy.blogspot.com/p/a...
--------------------------------------------------------------
Oracle Interview questions playlist • oracle interview quest...
Oracle 18C New features playlist • Oracle 18C New Feature
Oracle 12C New features playlist • Oracle 12C New Feature...
Oracle PLSQL records and collections playlist • oracle plsql records a...
--------------------------------------------------------------
My video courses at UDEMY www.udemy.com/user/2c29d781-3...
--------------------------------------------------------------
About Myself:
----------------------
I am Siva, [LEARN | CODE | TRAIN | SHARE].
Being in IT industry for more than 12+ years.
In my day to day job, I work with database technologies including Oracle, Java, Python, MongoDB, talend and UNIX.
I am passionate about "DATA", coding & training.
In my spare time, I teach database technologies , ETL etc.
I am very glad that you are reading my Profile, and I value your time as well as mine.
Looking forward to see you in my videos
For any questions, please drop me a mail at siva.k.academy@gmail.com
--------------------------------------------------------------

Пікірлер: 83
@dattavaraprasadreddy2863
@dattavaraprasadreddy2863 3 жыл бұрын
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 3 жыл бұрын
Its my pleasure, thanks for your comments, all the best 👍👍💐💐
@kdausu90
@kdausu90 2 жыл бұрын
Very nice! I was using temp tables to accomplish this same task
@mahadevgolabhanvi
@mahadevgolabhanvi 3 жыл бұрын
Superb explanation Siva, all videos are very informative and helpful 👍👍👌👌👌 thank you 🙏🏻
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Thank you bro 💐
@avinashbethi1410
@avinashbethi1410 2 жыл бұрын
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 🙏🙏💐💐
@dhirajshinde4752
@dhirajshinde4752 3 жыл бұрын
Thanks for making the concept clear !! 👍
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Welcome 🙏💐
@tummalanagarani6423
@tummalanagarani6423 Жыл бұрын
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
@bharathibalakrishnan6521
@bharathibalakrishnan6521 3 жыл бұрын
superb Siva! very good explanation..
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Thank you 🙏💐
@hc6008
@hc6008 3 жыл бұрын
Superb, excellebt vid..
@SivaAcademy
@SivaAcademy 3 жыл бұрын
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
@menaceasif
@menaceasif 3 жыл бұрын
Very nice video sir, thank u so much... God bless you 🙏😊🙏
@SivaAcademy
@SivaAcademy 3 жыл бұрын
My pleasure, thank you 💐🙏🙏🙏
@chandudevarapu1578
@chandudevarapu1578 3 жыл бұрын
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
@masalhemant4255
@masalhemant4255 3 жыл бұрын
Nice explanation...Sir...👍👍👍❤️❤️
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Thank you bro 💐
@dasubabuch1596
@dasubabuch1596 3 жыл бұрын
Ur explaination was awesome.
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Thanks you 💐
@rupeshdarwade7846
@rupeshdarwade7846 3 жыл бұрын
Nice explanation, Thanks...
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Welcome
@noorullabaig3756
@noorullabaig3756 2 жыл бұрын
Super explanation sir. Thank you so much
@SivaAcademy
@SivaAcademy 2 жыл бұрын
Welcome bro
@KohinoorEntertainmentsDivit
@KohinoorEntertainmentsDivit 2 жыл бұрын
You are doing a great job. Do you conduct any online classes ? Will be glad to join it.
@kiranshahane1095
@kiranshahane1095 3 жыл бұрын
Sir you are simply great we have 👍🙏
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Thank you 🙏🙏🙏💐💐💐
@SanjayKumar-yh8fd
@SanjayKumar-yh8fd 3 жыл бұрын
this vedio help me to learn the marge statement ,so thanks for the same
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Welcome bro 💐
@debadattabeura6403
@debadattabeura6403 3 жыл бұрын
Nice explaination sir
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Thank you 💐
@rk-ej9ep
@rk-ej9ep 2 жыл бұрын
Thank you soo mich sir....
@SivaAcademy
@SivaAcademy 2 жыл бұрын
Welcome bro
@saratchand4275
@saratchand4275 5 ай бұрын
good explained
@SivaAcademy
@SivaAcademy 5 ай бұрын
Thank you
@parthparth8680
@parthparth8680 2 жыл бұрын
Good....!
@SivaAcademy
@SivaAcademy 2 жыл бұрын
Thanks
@dreamheaven4661
@dreamheaven4661 3 жыл бұрын
Thank u shiva
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Welcome bro 💐
@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.
@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 ?
@AjithKumar-vk1fw
@AjithKumar-vk1fw 3 жыл бұрын
@mrarpitmore6189
@mrarpitmore6189 3 жыл бұрын
Super
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Thank you
@devavarapusrinivasurao2229
@devavarapusrinivasurao2229 3 жыл бұрын
Hi sir your videos are more informative.if it is possible please upload performance tuning videos tq sir
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Sure please stay tuned
@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...
@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
@YOGESHKUMAR-ff8or
@YOGESHKUMAR-ff8or 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
@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
@gajendras7528
@gajendras7528 3 жыл бұрын
What combinations can I use in merge statment?
@masalhemant4255
@masalhemant4255 3 жыл бұрын
Sir plz upload vedio forLIMIT clause and how to handle bulk exception
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Sure, please stay tuned, next video in plsql performance tuning series is about handling exception in bulk collection, please stay tuned
@masalhemant4255
@masalhemant4255 3 жыл бұрын
Thank you...
@hemanthraj6054
@hemanthraj6054 3 жыл бұрын
will u explain same merge with using pl sql code???
@rammurthybhukya9069
@rammurthybhukya9069 3 жыл бұрын
Can we insert records in 3rd table instead of Target table using Merge Statement with clause( When Not matched). Please advise.
@SivaAcademy
@SivaAcademy 3 жыл бұрын
I dont think to
@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
@dhanrajshunkalwar7098
@dhanrajshunkalwar7098 3 жыл бұрын
How can we achieve SCD 1, 2 using plsql ?
@kuldeepgupta8526
@kuldeepgupta8526 3 жыл бұрын
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 3 жыл бұрын
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
@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
@sindhupinky4959
@sindhupinky4959 3 жыл бұрын
Sir Can you please post some videos on Unix interview Question and answers
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Sure, I will start, please send me few questions you faced in interviews
@hanumanthu1246
@hanumanthu1246 3 жыл бұрын
if update record only have the resigned flag= Y means ?
@SivaAcademy
@SivaAcademy 3 жыл бұрын
Expectation is , Those records that marked as Y , should be removed from target table
@hanumanthu1246
@hanumanthu1246 3 жыл бұрын
@@SivaAcademy Thanks
@pawansonole9127
@pawansonole9127 3 жыл бұрын
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
@subhashisoracle3944
@subhashisoracle3944 3 жыл бұрын
don't view only keep like and subscribe
@Satheesh9491
@Satheesh9491 3 жыл бұрын
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 3 жыл бұрын
Sure bro, will cover in upcoming video please stay tuned
@Satheesh9491
@Satheesh9491 3 жыл бұрын
​@@SivaAcademy Can you share the video link
@SivaAcademy
@SivaAcademy 3 жыл бұрын
I am yet to post, will try to post in couple of weeks, please stay tuned
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
Pleased the disabled person! #shorts
00:43
Dimon Markov
Рет қаралды 27 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 44 МЛН
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
SQL - Merge
10:35
James Oliver
Рет қаралды 34 М.
Oracle PL SQL interview question | SQL to Delete duplicate records
17:27
Oracle DML Error Logging Tables
15:36
Siva Academy
Рет қаралды 17 М.
oracle set operator union unionall intersect minus
15:32
Siva Academy
Рет қаралды 72 М.
iPhone 15 Pro Max vs IPhone Xs Max  troll face speed test
0:33
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 10 МЛН
Лазер против камеры смартфона
1:01
Newtonlabs
Рет қаралды 736 М.
Сколько реально стоит ПК Величайшего?
0:37
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,2 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН