Sql Triggers🔫 Real Life Example | SQL Interview♟ Questions🎯

Поділитися
Вставка
  • Опубліковано 5 жов 2024
  • 👉Subscribe to our new channel: / @varunainashots
    ► Structured Query Language (SQL)(Complete Playlist):
    • Structured Query Langu...
    Other subject-wise playlist Links:
    --------------------------------------------------------------------------------------------------------------------------------------
    ►Design and Analysis of algorithms (DAA):
    • Design and Analysis of...
    ►Computer Architecture (Complete Playlist):
    • Computer Organization ...
    ► Theory of Computation
    • TOC(Theory of Computat...
    ►Artificial Intelligence:
    • Artificial Intelligenc...
    ►Computer Networks (Complete Playlist):
    • Computer Networks (Com...
    ►Operating System:
    • Operating System (Comp...
    ►Database Management System(Complete Playlist):
    • DBMS (Database Managem...
    ►Discrete Mathematics:
    • Discrete Mathematics
    ►Compiler Design:
    • Compiler Design (Compl...
    ►Number System:
    • Number system
    ►Cloud Computing & BIG Data:
    • Cloud Computing & BIG ...
    ►Software Engineering:
    • Software Engineering
    ►Data Structure:
    • Data Structure
    ►Graph Theory:
    • Graph Theory
    ►Programming in C:
    • C Programming
    ►Digital Logic:
    • Digital Logic (Complet...
    ---------------------------------------------------------------------------------------------------------------------------------------
    Our social media Links:
    ► Subscribe to us on UA-cam: / gatesmashers
    ►Subscribe to our new channel: / @varunainashots
    ► Like our page on Facebook: / gatesmashers
    ► Follow us on Instagram: / gate.smashers
    ► Follow us on Instagram: / varunainashots
    ► Follow us on Telegram: t.me/gatesmash...
    ► Follow us on Threads: www.threads.ne...
    --------------------------------------------------------------------------------------------------------------------------------------
    ►For Any Query, Suggestion or notes contribution:
    Email us at: gatesmashers2018@gmail.com

КОМЕНТАРІ • 94

  • @adeshbhore5501
    @adeshbhore5501 Рік тому +79

    Sir plzz make such videos for pl/sql cursors ,functions and so. On.....

  • @the_animeflix
    @the_animeflix 8 місяців тому +78

    Legend are watching one day before exam 😎

  • @saloni1sood
    @saloni1sood Рік тому +2

    I finally understand SQL triggers. Thank you so much.

  • @dishacoachingclasseskairan1226

    Mere भाई सच में गज़ब पढ़ाते हो तुम, 💯❤️👍

  • @ColonelStraker
    @ColonelStraker 7 місяців тому +1

    Thank you for your expertise. On a related subject, I have numerous Java applications that call SQL stored procedures to handle DML updates to tables. My question is.... how might the after-update trigger capture the name of the stored procedure that performed the data modification?

  • @mehakgupta11bcomsem28
    @mehakgupta11bcomsem28 10 місяців тому +2

    I think nobody can explain trigger wonderfully than u

  • @atulkprajapati
    @atulkprajapati Рік тому +5

    We are required to support fetching of rows from start to end from a result set in PL SQL and are not required to go to the previous row in the result set. Which among the following PL SQL features can we use for the same? External | Implicit | Forward | None of the Cursors
    Sir could you explain this?

  • @smitmodi7
    @smitmodi7 Рік тому +6

    (This will work in mySQL)
    delimiter $$
    create trigger t1
    before delete on employee
    for each row
    begin
    insert into employee_backup values(old.employee_name,old.age,old.salary);
    end; $$

    • @RahulVerma-ri4yv
      @RahulVerma-ri4yv Рік тому

      What about this 👉 :

    • @asura_emperor
      @asura_emperor Рік тому

      @@RahulVerma-ri4yv anything can be used as delimiter...as I use '/'

  • @shoaibabid393
    @shoaibabid393 Рік тому +2

    Sir! You re the real gem of CS

  • @Nilesh-u3q
    @Nilesh-u3q 8 місяців тому +1

    Sir 1 साल से ट्राई कर रहा हु जॉब के लिए SQL and plSQL developer position के लिए, लेकिन सर कुछ ज्यादा responce नही है

  • @daminimehta9075
    @daminimehta9075 Рік тому +2

    Sir triggers aur cursors pr videos bana dijiye taaki hamari help ho sakey aapne saare topics pr videos banayi hui hai magr inn do pr nhi banayi yhi toh important hai sir exams ke liye maine net pr search Kiya iss topic ke related pr koi bhi channel achey se nhi smjha saka pls sir jitni jldi ho saktey bana dijiye mere exams hai fifth of next month se sir final hai aur mujhe yhi do chapters bilkul nhi aatey pl sqql baaki Sara aata hai apke channel ki wajah se pls sir ye ek student ki request hai apne teacher se pls sir daal dijiye jitni jldi ho saktey hum wait krengey pls sir

  • @rajeshk7908
    @rajeshk7908 Рік тому +4

    Hi Sir,
    Can you please make a tutorial for the data warehouse concept with examples? like Dimensional and fact tables etc..

  • @sujitpanda1985
    @sujitpanda1985 Рік тому +1

    Excellent guruji

  • @omchandwadkar4395
    @omchandwadkar4395 Рік тому +1

    wow sir amazing thank you 💌💌

  • @Samrakahlon
    @Samrakahlon Рік тому +4

    Hlo sir
    Pls make the video on NOSQL
    Before 8 dec

  • @harshiljoshi8808
    @harshiljoshi8808 6 місяців тому

    thank you for clearing the whole concept of the trigger 😊😊

  • @pawarsandhyashashikant2579
    @pawarsandhyashashikant2579 Рік тому +1

    Sir thank you for clearing concept☺☺

  • @vikashkumargoswami827
    @vikashkumargoswami827 Рік тому

    love u sir, aap bahut acche aur easy tarike se samjhate ho

  • @vinayakingle1720
    @vinayakingle1720 Рік тому +1

    Plz make video on dimentional and fact table

  • @engineerstudent3041
    @engineerstudent3041 2 місяці тому

    very nice sir , you are great

  • @pavan.avasthi
    @pavan.avasthi Рік тому +1

    Sir please make a whole plsql series.

  • @rajasreelaha1170
    @rajasreelaha1170 10 місяців тому

    thank you so much sir,i stuck for so many hrs,finally understand that where i was stucking.thanks a lot sir.

  • @kamleshpatil1959
    @kamleshpatil1959 Рік тому

    Thank you bhai samajh me aa gaya trigger kya hota hai...

  • @forg_tful6221
    @forg_tful6221 Місяць тому

    Thank you

  • @zaharaameer8723
    @zaharaameer8723 6 місяців тому

    Thank you so much Sir G

  • @vaishanvimondhe4914
    @vaishanvimondhe4914 11 місяців тому

    you are great sir ...

  • @truptiradadiya8419
    @truptiradadiya8419 2 місяці тому

    Sir please make video for sqlite3 concept

  • @PallabChatterjee18
    @PallabChatterjee18 7 місяців тому

    Sir is this playlist is complete SQL if not please continue the series sir please sir

  • @Bhartiya766
    @Bhartiya766 4 місяці тому

    THANK YOU SO MUCH ❤❤

  • @abdulwahab3310
    @abdulwahab3310 13 днів тому

    sir when 1 row deleted form main table and insert into backup table then we can back the data into main table or not

  • @siddharthnigamians_fc
    @siddharthnigamians_fc Рік тому

    Tx you sir

  • @OmkarShinde-bz7oy
    @OmkarShinde-bz7oy Рік тому

    plz make a video store procedure and functions in mysql database sir

  • @keepshining3068
    @keepshining3068 Рік тому

    Good explanation techer thanks

  • @ritikasharma9252
    @ritikasharma9252 8 місяців тому

    Sir can you please make videos on pl sql

  • @Mehedihasan-rahat
    @Mehedihasan-rahat 5 місяців тому

    Sir if I like to write this as .. create or replace after delete on main for each row ... Then what will happen... I just placed after in place of before. Thanks

  • @amoghchavan970
    @amoghchavan970 Рік тому +1

    HOW TO RETRIVE THAT DATA BACK TO MAIN TABLE

  • @punammisal6394
    @punammisal6394 Рік тому +1

    Main table ka view bhi bna sakte hai na

  • @ganeshji5033
    @ganeshji5033 11 місяців тому

    Thanks sir

  • @sumannaskar5736
    @sumannaskar5736 Рік тому

    The main character 💯

  • @FaizanKhan-rr5gk
    @FaizanKhan-rr5gk 10 місяців тому

    thank you sir 👍👍👍👍👍😇😇😇😇😇😇😇

  • @koushikkumar481
    @koushikkumar481 5 місяців тому

    Sir add this video in your dbms series today I gave my exam and this question come and I didn't attempted 😢

  • @sujoysetua0814
    @sujoysetua0814 10 днів тому

    Is this will work for Drop and Truncate?

  • @TargetMpset
    @TargetMpset Рік тому

    Sir!! please start Madhya Pradesh ITI Training Officer (COPA) course. 🙏🏻🙏🏻🙏🏻

  • @souravbarua3991
    @souravbarua3991 Рік тому

    Thank u. My concept is clear about trigger. But while i performing mentioned query in sql server its not working.

  • @rushivanjare97
    @rushivanjare97 Рік тому

    Sir give same example triggee but query in ms-SQL these query not run in ms-sql

  • @niharikakadiyan8994
    @niharikakadiyan8994 Рік тому

    Sir please start a course for hpsc pgt computer science

  • @harshitzala1065
    @harshitzala1065 Рік тому

    Thank you 🥳

  • @sonalijain9024
    @sonalijain9024 13 днів тому

    CREATE TRIGGER tr_Main
    ON main
    AFTER DELETE
    AS
    BEGIN
    INSERT INTO Backup_table (id, Name)
    SELECT id, Name
    FROM deleted;
    END
    This is my approach of solving in sql server.

  • @ZigronInc1
    @ZigronInc1 4 місяці тому

    do not use triggers, we used triggers and they put alot of load on database.

  • @moodwala4971
    @moodwala4971 10 місяців тому +1

    वाय बींग ऑन द इंट्रो😅😅

  • @poojakurmi7858
    @poojakurmi7858 6 місяців тому

    I make same 2same program but trigger is not create it give us error incorrect syntax near before

  • @vishalachary6814
    @vishalachary6814 11 місяців тому

    why we are using before ?please someone explain

  • @habibaansari5325
    @habibaansari5325 10 місяців тому

    Why do we use colon before old

  • @shibuadak7419
    @shibuadak7419 Рік тому +2

    sir command are not work in oracal 10g (create or replace trigger t1
    before delete on main
    for each row
    begin
    insert into backup values(old.id, old.salary);
    end;) show an error like (ORA-04089: cannot create triggers on objects owned by SYS) . sir please solve it............

  • @syedarbaz8525
    @syedarbaz8525 Рік тому

    Aur backup table me se main table m kaise data wapas laaye

  • @antareepdas3325
    @antareepdas3325 11 місяців тому

    Will this work on MYSQL

  • @kapil_0137
    @kapil_0137 4 місяці тому

    Before one hour of exam bro

  • @shubham7564
    @shubham7564 Рік тому

    Understood

  • @abuzargour3030
    @abuzargour3030 4 місяці тому +1

    Mujhe samaj nahi aaya

    • @Nohseen_Khan
      @Nohseen_Khan 3 місяці тому

      Toh like👍🏻 nhi,
      Dislike👎🏻 kare 😉😉

  • @HITESH1296.
    @HITESH1296. Рік тому

    I humbly request you to start the course of "Informatics Assistant(Rajasthan)".

  • @MuhammadAnas-pj3gk
    @MuhammadAnas-pj3gk Рік тому

    Please Koi Bhai Ye program bnade C language me 🙏🙏 bari mehrbani hogi
    Q.1) Prompt the user for his/her year of birth and if the year is a leap year print “you were born in a leap year” , otherwise print the age of the user. (using function named leap year ())

    • @hunterYoutuber29
      @hunterYoutuber29 Рік тому +2

      google it

    • @diptodas2399
      @diptodas2399 Рік тому

      #include
      #include
      int main() {
      int year_of_birth, is_leap_year, age_in_c;
      time_t t = time(NULL);
      struct tm current_time = *localtime(&t);

      printf("What year were you born in? ");
      scanf("%d", &year_of_birth);
      // Check if the year is a leap year
      if ((year_of_birth % 4 == 0 && year_of_birth % 100 != 0) || year_of_birth % 400 == 0) {
      printf("You were born in a leap year!
      ");
      } else {
      // Calculate the age of the user in C
      age_in_c = current_time.tm_year + 1900 - year_of_birth + 1; // Adding 1 to account for the current year
      printf("You are %d years old in C.
      ", age_in_c);
      }
      return 0;
      }

    • @diptodas2399
      @diptodas2399 Рік тому

      I added tm_year+1900 because tm_year starts from 1900

  • @rushivanjare97
    @rushivanjare97 Рік тому

    How to do in ms-SQL SsMs

  • @SUDHIRKUMAR-wq2mf
    @SUDHIRKUMAR-wq2mf Рік тому

    jay ho

  • @GiveMeButton
    @GiveMeButton Місяць тому

    Legend are watching 5 min before exam

  • @pratimadwivedi288
    @pratimadwivedi288 Місяць тому

    9 min before exam 💀

  • @mmb8
    @mmb8 Рік тому

    Subtitles please

  • @kanxibasnet9426
    @kanxibasnet9426 4 місяці тому

    You're so handsome

  • @vinayaksharma7134
    @vinayaksharma7134 8 місяців тому

    🔫SQL Trigger🔫

  • @rajeevmishra4010
    @rajeevmishra4010 Рік тому +1

    First view🥰

  • @19-jeremymath
    @19-jeremymath 5 місяців тому +1

    Legends are watching after the exam

    • @angst6062
      @angst6062 5 місяців тому

      Back aagyi kya 😂😂😂

  • @ajaynayak3047
    @ajaynayak3047 9 місяців тому

    Thanks 😊