A Guide to SQL
A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 8, Problem 20RQ

Explanation of Solution

Trigger:

  • The trigger is a named set of SQL statement that is executed at the time of data modification.
  • If the stated trigger condition meets up, then it means that the mentioned action in the trigger has been performed.

Three parts of trigger:

  • Event:
    • It specifies the changes to be made, such as an UPDATE or DELETE of a record.
  • Condition:
    • It specifies the condition to examine the records about to be affected...

Explanation of Solution

Purpose of triggers:

The purpose of triggers is given below:

  • For enforcement of business or security constraints.
  • Creation of duplication tables for backup purposes.
  • Used for auditing purpose.
  • In shopping scenario, it is used to offer free shipping for a client who orders an item which is more than $1000. A trigger will be built to check the order total upon the completion of the order...

Blurred answer
Students have asked these similar questions
Triggers? Why? How do triggers work in Access 2016?
What do we mean when we talk about triggers? What are their purposes, exactly? Access 2016: What are the steps to take to get the functionality of a trigger?
What's the Distinction Between Triggers and Rules?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
Enhanced Discovering Computers 2017 (Shelly Cashm...
Computer Science
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Cengage Learning
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning