1. Cruise(cid, name, number_of_days, price, number_of_stops) Port(pid, city, country, number_of_stars, capacity) Stops(cid, pid, stopno, stopduration) Assume that the number_of_stops attribute of the Cruise table contains the total number of stops for each cruise. Write a trigger that will be fired whenever the Stops table is modified to increase or decrease the number_of_stops value accordingly. *

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter6: Additional Database Objects
Section: Chapter Questions
Problem 1HOA
icon
Related questions
icon
Concept explainers
Question
1. Cruise(cid, name, number_of_days, price, number_of_stops)
Port(pid, city, country, number_of_stars, capacity)
Stops(cid, pid, stopno, stopduration)
Assume that the number_of_stops attribute of the Cruise table contains the total number of stops
for each cruise. Write a trigger that will be fired whenever the Stops table is modified to increase
or decrease the number_of_stops value accordingly. *
Transcribed Image Text:1. Cruise(cid, name, number_of_days, price, number_of_stops) Port(pid, city, country, number_of_stars, capacity) Stops(cid, pid, stopno, stopduration) Assume that the number_of_stops attribute of the Cruise table contains the total number of stops for each cruise. Write a trigger that will be fired whenever the Stops table is modified to increase or decrease the number_of_stops value accordingly. *
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Query Syntax
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning