SlideShare a Scribd company logo
Chapter – 12
Trigger
1. Question
Solution
Query Execution Result
Calling and Result
Concept Generalization
Query
Solution
2. Question
Solution
Query Execution Result
Calling and Result
Concept Generalization
Query
Solution
Author is M.Tech. from BITS Pilani in software
systems. He is currently working as
Associate Technical Architect in CMM Level 5
company and have more than 15 years of
experience in software development and
practices.
Please reach out to Author at
ars.sqb@gmail.com if you have any query /
suggestion / details which you would like to
share.
About the Author
Why to Read Book
Who can Read Book
Features of the Book
How to buy the Book and benefit after purchase
Want to learn more about
our 30 hours training
program
30 Hours Training Schedule for SQL Server 2017
Serial # Agenda Duration
(Hours)
Agenda Detail
1 Installation of Microsoft SQL Server 2017 1.0  We will make sure installation done on
every machine
2 TSQL-Selection 2.0  Record Selection
 Record Alias
 Record Ordering
 Select Top N record
 Record Distinct
3 TSQL-Filter 2.0  Record filter on Numeric column
 Record filter on Date column
 Record filter on String column
4 TSQL-Multiple Filter 1.5  Record filter using AND operator
 Record filter using OR operator
 Record filter using NOT operator
5 TSQL-Grouping 1.5  Count, Count Distinct, Min, Max, Sum,
Average On Table
 Record Grouping and then Count, Min,
Max, Sum, Average On Table
 Record Grouping and then Count, Min,
Max, Sum, Average On Table and
Finally Filter
6 TSQL-Joining 2.0  Record Join (Left join, Right join, Full
join, Cross join, Cross Apply and Outer
Apply)
 Using Exists and Not Exists
30 Hours Training Schedule for SQL Server 2017
Serial # Agenda Duration
(Hours)
Agenda Detail
7 TSQL -Various Operation 3.0  Working with Date
 String Operation
 Using ISNULL
 Using Case
 Using IIF
 Converting column value to other Data
Type
 Sequencing on Table records
8 Working with two result sets 1.5  Using Intersect
 Using Except
 Using Union All
 Using Union
9 DDL-Operations 2.0  Working on Database
 Working on Table
 Working on Various Keys
 Working on Index
10 DML-Operations 2.0  Record Insertion
 Record Insertion using Select INTO
 Record Update
 Record Delete
 Truncate Table
30 Hours Training Schedule for SQL Server 2017
Serial # Agenda Duration
(Hours)
Agenda Detail
11 Stored Procedure 4.0  Working with Variable
 Create Stored Procedure
 Alter Stored Procedure
 Using Temporary Table/ Table Variable
 Using If Else
 Loop Handling
 Exception Handling
 Transaction Management
12 Function 1.5  Scalar Function
 Inline Table Valued Function
 Multi-Statement Table Valued Function
13 Trigger 2.5  After Trigger: INSERT
 After Trigger: UPDATE
 After Trigger: DELETE
 After Trigger: Magic Tables
 Instead of Trigger: INSERT
 Instead of Trigger: UPDATE
 Instead Of Trigger: DELETE
14 View 1.0  Create View
 Alter View
15 Troubleshooting and Performance 2.5  Basic Troubleshooting
 Stored Procedure Debugging
 Function Debugging
 Query Performance
 Query Performance tool
Total 30

More Related Content

PPTX
Chapter 9 DML-Operations
PPTX
Chapter 14 Troubleshooting and Performance
PPTX
Chapter 10 Stored Procedure
PPTX
Chapter 7 Working with two result sets
PPTX
Chapter 4 TSQL-Grouping
PPTX
Chapter 1 TSQL - SELECTION
PDF
MODULE 1.pdf foundations of data science for final
PDF
04-Intro-SQL database management systems
Chapter 9 DML-Operations
Chapter 14 Troubleshooting and Performance
Chapter 10 Stored Procedure
Chapter 7 Working with two result sets
Chapter 4 TSQL-Grouping
Chapter 1 TSQL - SELECTION
MODULE 1.pdf foundations of data science for final
04-Intro-SQL database management systems

Similar to Chapter 12 Trigger (20)

PPTX
OUTPUT Clause Correlated Subqueries and Subquery Extensions
PPTX
U-SQL Does SQL (SQLBits 2016)
PPT
Chapter07 database system in computer.ppt
PPTX
Sql intro
PPT
Module 3 Part I - Bk1 Chapter 07.ppt
DOCX
Ravi querys 425
PDF
Exploring T-SQL Anti-Patterns
PPTX
1. dml select statement reterive data
PPT
Advanced Sql Training
PDF
Azure SQL Database DEV - LIVE Online Training
PPTX
Basics of SQL understanding the database.pptx
PPT
Transact SQL (T-SQL) for Beginners (A New Hope)
PPT
Module03
PDF
SQL Server Developer Course Online Training
PPTX
Complete_MS_SQL_Server_Presentation.pptx
PDF
Tech Jam 01 - Database Querying
PDF
Database Testing Interview Questions By H2kInfosys
PPTX
SQL techniques for faster applications
DOC
Sql functions
PDF
#Microsoft #BusinessIntelligence - #MSBI Online Training (#LIVE, Instructor-L...
OUTPUT Clause Correlated Subqueries and Subquery Extensions
U-SQL Does SQL (SQLBits 2016)
Chapter07 database system in computer.ppt
Sql intro
Module 3 Part I - Bk1 Chapter 07.ppt
Ravi querys 425
Exploring T-SQL Anti-Patterns
1. dml select statement reterive data
Advanced Sql Training
Azure SQL Database DEV - LIVE Online Training
Basics of SQL understanding the database.pptx
Transact SQL (T-SQL) for Beginners (A New Hope)
Module03
SQL Server Developer Course Online Training
Complete_MS_SQL_Server_Presentation.pptx
Tech Jam 01 - Database Querying
Database Testing Interview Questions By H2kInfosys
SQL techniques for faster applications
Sql functions
#Microsoft #BusinessIntelligence - #MSBI Online Training (#LIVE, Instructor-L...
Ad

Recently uploaded (20)

PPTX
Artificial Intelligence
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
737-MAX_SRG.pdf student reference guides
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Geodesy 1.pptx...............................................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
composite construction of structures.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
web development for engineering and engineering
Artificial Intelligence
bas. eng. economics group 4 presentation 1.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Fundamentals of safety and accident prevention -final (1).pptx
737-MAX_SRG.pdf student reference guides
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Geodesy 1.pptx...............................................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
composite construction of structures.pdf
Foundation to blockchain - A guide to Blockchain Tech
Automation-in-Manufacturing-Chapter-Introduction.pdf
Safety Seminar civil to be ensured for safe working.
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Model Code of Practice - Construction Work - 21102022 .pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
web development for engineering and engineering
Ad

Chapter 12 Trigger

  • 12. Author is M.Tech. from BITS Pilani in software systems. He is currently working as Associate Technical Architect in CMM Level 5 company and have more than 15 years of experience in software development and practices. Please reach out to Author at ars.sqb@gmail.com if you have any query / suggestion / details which you would like to share. About the Author
  • 13. Why to Read Book Who can Read Book
  • 15. How to buy the Book and benefit after purchase
  • 16. Want to learn more about our 30 hours training program
  • 17. 30 Hours Training Schedule for SQL Server 2017 Serial # Agenda Duration (Hours) Agenda Detail 1 Installation of Microsoft SQL Server 2017 1.0  We will make sure installation done on every machine 2 TSQL-Selection 2.0  Record Selection  Record Alias  Record Ordering  Select Top N record  Record Distinct 3 TSQL-Filter 2.0  Record filter on Numeric column  Record filter on Date column  Record filter on String column 4 TSQL-Multiple Filter 1.5  Record filter using AND operator  Record filter using OR operator  Record filter using NOT operator 5 TSQL-Grouping 1.5  Count, Count Distinct, Min, Max, Sum, Average On Table  Record Grouping and then Count, Min, Max, Sum, Average On Table  Record Grouping and then Count, Min, Max, Sum, Average On Table and Finally Filter 6 TSQL-Joining 2.0  Record Join (Left join, Right join, Full join, Cross join, Cross Apply and Outer Apply)  Using Exists and Not Exists
  • 18. 30 Hours Training Schedule for SQL Server 2017 Serial # Agenda Duration (Hours) Agenda Detail 7 TSQL -Various Operation 3.0  Working with Date  String Operation  Using ISNULL  Using Case  Using IIF  Converting column value to other Data Type  Sequencing on Table records 8 Working with two result sets 1.5  Using Intersect  Using Except  Using Union All  Using Union 9 DDL-Operations 2.0  Working on Database  Working on Table  Working on Various Keys  Working on Index 10 DML-Operations 2.0  Record Insertion  Record Insertion using Select INTO  Record Update  Record Delete  Truncate Table
  • 19. 30 Hours Training Schedule for SQL Server 2017 Serial # Agenda Duration (Hours) Agenda Detail 11 Stored Procedure 4.0  Working with Variable  Create Stored Procedure  Alter Stored Procedure  Using Temporary Table/ Table Variable  Using If Else  Loop Handling  Exception Handling  Transaction Management 12 Function 1.5  Scalar Function  Inline Table Valued Function  Multi-Statement Table Valued Function 13 Trigger 2.5  After Trigger: INSERT  After Trigger: UPDATE  After Trigger: DELETE  After Trigger: Magic Tables  Instead of Trigger: INSERT  Instead of Trigger: UPDATE  Instead Of Trigger: DELETE 14 View 1.0  Create View  Alter View 15 Troubleshooting and Performance 2.5  Basic Troubleshooting  Stored Procedure Debugging  Function Debugging  Query Performance  Query Performance tool Total 30