SQL Triggers | SQL Tutorial for Beginners in 2021| SQL Triggers with Examples | Great Learning

Поделиться
HTML-код
  • Опубликовано: 11 июл 2021
  • 🔥1000+ Free Courses With Free Certificates: www.mygreatlearning.com/acade...
    Looking for a career upgrade & a better salary? We can help, Choose from our no 1 ranked top programmes. 25k+ career transitions with 400 + top corporate companies. Exclusive for working professionals: glacad.me/3r2d0rb
    🔥 Get your free certificate of completion for the SQL for Data Science Course, Register Now: glacad.me/3kgKNv4 🔥
    In this video we discuss SQL Triggers. A SQL trigger is a database object which fires when an event occurs in a database. We can execute a SQL query that will "do something" in a database when a change occurs on a database table such as a record is inserted or updated or deleted. A trigger is a stored procedure in a database that automatically invokes whenever a special event in the database occurs. For example, a trigger can be invoked when a row is inserted into a specified table or when certain table columns are being updated.
    00:01:20 - Agenda
    00:02:01 - Introduction
    00:05:13 - Syntax of Trigger
    00:06:46 - Before Insert Trigger
    00:17:18 - After Insert Trigger
    00:28:58 - Before Update Trigger
    00:35:47 - After Update Trigger
    00:45:00 - Advantages
    00:45:58 - Summary
    Visit Great Learning Academy, to get access to 300+ free courses with 1000+ hours of content on Data Science, Data Analytics, Artificial Intelligence, Big Data, Cloud, Management, Cybersecurity, Software Development and many more. These are supplemented with free projects, assignments, datasets, quizzes. You can earn a certificate of completion at the end of the course for free. glacad.me/3xFecTK
    Get the free Great Learning App for a seamless experience, enroll for free courses and watch them offline by downloading them. glacad.me/3cSKlNl
    About Great Learning:
    - Great Learning is an online and hybrid learning company that offers high-quality, impactful, and industry-relevant programs to working professionals like you. These programs help you master data-driven decision-making regardless of the sector or function you work in and accelerate your career in high growth areas like Data Science, Big Data Analytics, Machine Learning, Artificial Intelligence & more.

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

  • @artyworldh
    @artyworldh 2 года назад +5

    Ist triggers 13:16
    2nd tri 20:54
    31:21 third trigger
    39:30 4 trigger

  • @gmagcaling
    @gmagcaling 15 дней назад

    Very good examples presented.

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

    Your video is very helpful, thank you so much.

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

    Very helpful video 👍Thanks ❤️

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

    Your explanation is very plain and I understood the difference between Before and After Insert, as an Almuni of GL, it's privilege to have mentors like you!

  • @user-jp8nr3dv1j
    @user-jp8nr3dv1j 2 месяца назад

    very helpful video..thanks. after watching many videos.

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

    Thank you it helps a lot

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

    Thank you so much. It would be greatful if you have explained 'before delete' and 'after delete' examples also. Anyways, You explained it in detail.

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

    Thank you so much

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

    Waooo 😍 😍
    Great video 🔥🔥
    Educator is so clear in his way of explanation ✊
    Looking forward to more videos.

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

    Nice explanation

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

    🔥 Get your free certificate of completion for the SQL for Data Science Course, Register Now: glacad.me/3igRY4b 🔥

  • @KanchanSingh-ln8nw
    @KanchanSingh-ln8nw 3 года назад

    Thanx bro

  • @ALLINONE-fh8pw
    @ALLINONE-fh8pw 3 года назад +2

    How the trigger , set , begin, NEW Commands are differ in SQL Server , PostgreSQL and MySQL and Oracle .Pls anyone answer it and let me know.

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

    How to use trigger when we have to select salary between 1000 and 1200 and salary must be even ?? Should i use if condition to create statement or what??

  • @Jay-jv6fo
    @Jay-jv6fo Год назад

    please tell me why did you write delimiter // in case of before update ? how to know at which time we should write delimiter or not /?

  • @mohit_750-m7p
    @mohit_750-m7p 3 года назад

    PHP per Ek video chahiye 👍

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

    How can we implement trigger on sqlalchemy. Help me bro.. thanks in advance

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

    how can I run the same query on PostgreSQL?

  • @sid-harthsid-harth3371
    @sid-harthsid-harth3371 Год назад

    Sir nice explanation....
    No need to mention delimiter //?

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

      Hi we are glad that you liked our Content Please do subscribe to our Channel for Similar & Awesome Content

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

    28:19

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

    I am working on SQL Server and it always shows error at 'before insert' step. why is that so?? it is not allowing me to create trigger. please help

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

      CREATE TRIGGER CALCULATE_M
      before insert
      ON STUDENTS
      FOR EACH ROW
      SET NEW.FEES = NEW.FEES+100;
      this shows error
      Msg 102, Level 15, State 1, Procedure CALCULATE_M, Line 2 [Batch Start Line 226]
      Incorrect syntax near 'before'.

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

      @@itsarpana Because for SQL Server there is seperate syntax..there is no such thing as before insert in SQL Server