Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using SQL complete Exercise 8 SQL Functions and Procedures 8. Assume the TRIP table contains a column named TOTAL PERSONS that represents the total number

Using SQL complete Exercise 8 image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
SQL Functions and Procedures 8. Assume the TRIP table contains a column named TOTAL PERSONS that represents the total number of persons for that trip. Following the style shown in the text, write the code in PL/SQL or T-SQL for the following triggers: When inserting a row in the RESERVATION table, add the NUM_PERSONS value to the TOTAL PERSONS value for the appropriate trip. a. b. When updating a row in the RESERVATION table, add the difference between the new NUM PERSONS value and the old NUM PERSONS value to the TOTAL PERSONS value for the appropriate trip. When deleting a row in the RESERVATION table, subtract the NUM_PERSONS value from the TOTAL_PERSONS value for the appropriate trip. c. Because the TRIP table contains several columns with character data, the staff at Colo- duanture Tours would like to know more about string or character functions. Use the TD ond INITCAP. Are

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

Why, in lesson 9, is always thinking about what if so important?

Answered: 1 week ago

Question

=+4. How does cultural context affect communication? [LO-5]

Answered: 1 week ago