Тёмный

Oracle PL SQL interview question | What is Mutating Trigger 

Siva Academy
Подписаться 48 тыс.
Просмотров 52 тыс.
50% 1

Наука

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 83   
@ujjwalgiri6526
@ujjwalgiri6526 4 года назад
A BEFORE INSERT trigger will not cause a mutating table error as long as the triggering INSERT statement is a single row insert (INSERT-VALUES).
@AparnaBL
@AparnaBL 3 года назад
You are a good teacher. Your videos are crisp and clear with good presentation and your concept articulation is par ahead than most of the teachers on RU-vid
@SivaAcademy
@SivaAcademy 3 года назад
Welcome 💐💐
@SudhirBhajnawale
@SudhirBhajnawale 4 года назад
Thanks a lot Siva for crystal clear explanation. One of Best Playlist for PL SQL Developers
@SivaAcademy
@SivaAcademy 4 года назад
It's my pleasure,Thank you so much :-)
@amanigrandhi6616
@amanigrandhi6616 4 года назад
Thanks Siva. I have learnt so many new concepts from your videos. You are doing a great job....
@SivaAcademy
@SivaAcademy 4 года назад
It's my pleasure,Thank you so much :-)
@randomchitrakatha
@randomchitrakatha 4 года назад
Thank you sir....ur way of explanation is too good....i learned everything in plsql from you only
@SivaAcademy
@SivaAcademy 4 года назад
🙏🙏🙏its my pleasure, thanks a lot 🙂
@gsraj511
@gsraj511 2 года назад
Thanks Siva...
@dattavaraprasadreddy9234
@dattavaraprasadreddy9234 4 года назад
doing a great job bro.. i learned lot of new concepts from u thanks a lot bro keep uploading new videos
@SivaAcademy
@SivaAcademy 4 года назад
Welcome bro 🙏
@riskassure
@riskassure 4 месяца назад
Great video! Thank you. How do you modify the trigger so you cannot update CEO's salary to be below the second highest salary in the emp_t table?
@TestingFever
@TestingFever Год назад
YOU ARE SO GOOD IN EXPLANING. THANKS!! CAN YOU DO A SHORT ONE ON Partition Pruning
@SivaAcademy
@SivaAcademy Год назад
Thank you, sure, please stay tuned
@anilkumar-xv4tg
@anilkumar-xv4tg 2 года назад
Hi brother hoping you are doing well Please do the video on below question (Why dynamic SQL is required? Where did you use in your project)
@SivaAcademy
@SivaAcademy 2 года назад
Sure bro, will do, please stay tuned
@dheemathimadhu847
@dheemathimadhu847 3 года назад
Really very good explanation. Thankyou so much.
@SivaAcademy
@SivaAcademy 3 года назад
Welcome 💐
@SanjayKumar-yh8fd
@SanjayKumar-yh8fd 3 года назад
Yes Sir, it is clear to me now, so lot of thanks , i have subscribe your channel sir, I joined this today , way of teaching is very fantastic, so thanks again
@SivaAcademy
@SivaAcademy 3 года назад
My pleasure 💐 thank you
@ravindra192
@ravindra192 3 года назад
Please make a vedio on performance tunning
@SivaAcademy
@SivaAcademy 3 года назад
Sure, please stay tuned
@zaifikhan2380
@zaifikhan2380 3 года назад
Thanks for all this informative videos
@SivaAcademy
@SivaAcademy 3 года назад
Welcome bro 💐🙏👍
@Parvej669
@Parvej669 4 года назад
Really like all your videos, great explanation!!!
@SivaAcademy
@SivaAcademy 4 года назад
Thank you 🙏
@vikrantmukkawar9737
@vikrantmukkawar9737 4 года назад
Nice explanation I have one doubt why mutating error will come only in row level trigger not in statement level trigger ?
@sujaa1000
@sujaa1000 4 года назад
Thank you Siva, the tutorial was very helpful Sujaa
@SivaAcademy
@SivaAcademy 4 года назад
My pleasure 😊
@sujaa1000
@sujaa1000 4 года назад
Thank you Siva.................even experienced developers will learn a lot from you. Can you please make a video on how to debug a collection used in stored procedures. Regards, Sujaa
@SivaAcademy
@SivaAcademy 4 года назад
🙏🙏🙏its my pleasure, thanks a lot for your comments
@randyregins
@randyregins 4 года назад
parses a sentence and replaces each word with the following: first letter, number of distinct characters between first and last character, and last letter. For example, Smooth would become S3h. Words are separated by spaces or non- alphabetic characters and these separators should be maintained in their original form and location in the answer Siva Bro please these type of scenarios and give the solution for this challenge
@SivaAcademy
@SivaAcademy 4 года назад
Hi Ranjith, please give me few more strings and expected output for me to understand better
@randyregins
@randyregins 4 года назад
If i give a input = Ranjith Output is print only first and last letters balance howmany alphabet to be used like 'anjit' 5 so output is 'R5h'
@SivaAcademy
@SivaAcademy 4 года назад
Got it Ranjith, number of distinct characters between first and last character right
@randyregins
@randyregins 4 года назад
Yes Bro
@SivaAcademy
@SivaAcademy 4 года назад
👍sure will post it soon bro
@madakasai7152
@madakasai7152 8 месяцев назад
Sir , By using PRAGMA AUTONOMOUS_TRANSACTION + TCL Command we can resolve the mutating error CREATE OR REPLACE TRIGGER TRG_MUTATION BEFORE UPDATE OF SAL ON EMP FOR EACH ROW DECLARE LV_MAX_SAL NUMBER; PRAGMA AUTONOMOUS_TRANSACTION; BEGIN SELECT MAX(SAL) INTO LV_MAX_SAL FROM EMP; IF :NEW.SAL
@jaikrish38
@jaikrish38 4 года назад
First of all I would like to thank you for sharing valuable knowledge . Can you please share me details about 1. how to debug a procedure or function using dbms_debug 2.How to capture multiple exception at one statement (not using when other or multiple when).
@SivaAcademy
@SivaAcademy 4 года назад
jai, i replied via mail i hope
@boobalanu7226
@boobalanu7226 4 года назад
@@SivaAcademy i too need it bro
@sujaa1000
@sujaa1000 4 года назад
@ Siva Academy I too need it
@jaikrish38
@jaikrish38 4 года назад
@@SivaAcademy thank yo
@shashank2004
@shashank2004 4 года назад
Nice explanation bro, pls make a video on cascading trigger , pipeline function, and explain plan etc.
@SivaAcademy
@SivaAcademy 4 года назад
Thank you, Sure Bro, will add it to my working list :-)
@sushreesangitasamal9240
@sushreesangitasamal9240 3 года назад
U r a perfect teacher.How I will write a trigger if sysdate is Friday?
@SivaAcademy
@SivaAcademy 3 года назад
With in the body of trigger you can check the day using to_char function and then execute the logic if the day is Friday, please look into this video to know date format ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-E0NKvwuJu5c.html
@sh4rk717
@sh4rk717 3 года назад
Hello from Russia. I just have known a new word "lakh")) thank you. Tell me please, Why do we need a second condition in where clause in select statement (about deptno)?
@vsr1727
@vsr1727 4 года назад
Thanks Siva for sharing info
@SivaAcademy
@SivaAcademy 4 года назад
🙏🙏 welcome
@pankajkharade6936
@pankajkharade6936 4 года назад
Excellent explanation
@SivaAcademy
@SivaAcademy 4 года назад
Thank you
@satishbhusal4838
@satishbhusal4838 4 года назад
Great explanation. But from what I have read Statement level triggers can also cause mutation error when the ON DELETE CASCADE clause has been used. But I have seen this in 11g. I haven't worked with 12c or above versions. Can You please confirm?
@kanaiyasindhavad5605
@kanaiyasindhavad5605 Год назад
True
@arpitsrivastava8703
@arpitsrivastava8703 2 года назад
Hi ...2 quest Can we use commit in exception section Can we call store procedure in trigger
@SivaAcademy
@SivaAcademy 2 года назад
Yes, you can have commit in exception, also you can call procedure from trigger
@Krishna-hm2dr
@Krishna-hm2dr 4 года назад
How it's making restriction not to update on emp_t table If sal greater than 1lakh because trigger has if-else condition on log table only. Please clarify.
@ABHISHEKchyouandi
@ABHISHEKchyouandi 4 года назад
Hi sir. Can you please make a video series on hints in oracle with use cases? Thanks in advance.
@SivaAcademy
@SivaAcademy 4 года назад
Sure bro, please stay tuned
@rameshrameshbs101
@rameshrameshbs101 2 года назад
Brother, Is this second condition(:old.job= 'CEO') is correct? Which you used it in if cluse... As per this condition it will update the record which is have job='CEO' value... But that should not happen right, because as per your explanation we need to update the records other than CEO record
@rameshrameshbs101
@rameshrameshbs101 2 года назад
Correct me if I'm wrong...
@rameshrameshbs101
@rameshrameshbs101 2 года назад
But your way of explanation is simply superb... Thank you...
@SivaAcademy
@SivaAcademy 2 года назад
Welcome bro, old value to be ceo, that means you are trying to update ceo with something else
@satvinderbhangu361
@satvinderbhangu361 3 года назад
Could you explain me how else part work = :new.sal = :old.sal; can we write Elsif :new.sal >:old.sal then Raise_application_error .can we
@srikantabehera7797
@srikantabehera7797 4 года назад
Hi Shiva, Can you give some idea about bind variable and cursor sharing. What is the advantage.
@SivaAcademy
@SivaAcademy 4 года назад
Sure, will add as part of performance tuning series
@nrini16
@nrini16 4 года назад
What is the maximum number of triggers we can define on one table?
@SivaAcademy
@SivaAcademy 4 года назад
posting a video in this question soon, please stay tuned
@nrini16
@nrini16 4 года назад
Why mutating trigger error occurs only for row level trigger and not for statement level trigger?
@suraj454
@suraj454 4 года назад
Mutating error are not occurred in statement level trigger because, through these statement level trigger when we performing DML operations automatically data committed into the database.
@satishbhusal4838
@satishbhusal4838 4 года назад
Mutating Trigger can also happen on statement level triggers too. Condition is ON DELETE CASCADE relation should be there between the parent and child table. Even Functions can also cause Mutation error.
@sujaa1000
@sujaa1000 4 года назад
Hi Siva, One request, we use to find the link to the data used in the respective video's, but I am not finding it now, if it available it would help with the learning process, or am I missing something? Regards, Sujaa
@SivaAcademy
@SivaAcademy 4 года назад
For this video I didn't give, because it was just a concept based. From next videos I can post the link
@boobalanu7226
@boobalanu7226 4 года назад
make a video on Dynamic SQL
@SivaAcademy
@SivaAcademy 4 года назад
Sure, Please stay tuned
@prashantmulik
@prashantmulik 4 года назад
Thanks
@SivaAcademy
@SivaAcademy 4 года назад
Welcome
Далее
LOLLIPOP-SCHUTZ-GADGET 🍭 DAS BRAUCHST DU!
00:28
TRENDNI BOMBASI💣🔥 LADA
00:28
Просмотров 695 тыс.
Practice SQL Interview Query | Big 4 Interview Question
14:47
What is the difference between decode and case
11:00
Просмотров 126 тыс.
Infosys SQL Interview Question
9:23
Просмотров 18 тыс.