Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3- Create a trigger OvrPatient that will guarantee any time the patient cancer type is updated if complication is infection and complication mod is

3- Create a trigger OvrPatient that will guarantee any time the patient cancer type is updated if

3- Create a trigger OvrPatient that will guarantee any time the patient cancer type is updated if complication is infection and complication mod is wound infection the trigger writes the following message to the output window. ***ATTENTION *** ATTENTION*** PLCO ID: Cancer Type: Study Year: Complication days: Test it with: update OVARIAN_MED_COMP set CANCTYPE = 1 where PLCO_ID = 'A-108809-7';/ Output should look like: ***ATTENTION PLCO_ID: Cancer Type: Study Year: Test it with: *** ATTENTION*** 2 Complication days: 844 A-108809-7 Ovarian Cancer Output should look like: update OVARIAN_MED_COMP set CANCTYPE = 2 where PLCO_ID = 'T-121744-8';/ ***ATTENTION *** ATTENTION*** PLCO_ID: Cancer Type: Study Year: T-121744-8 Peritoneal Cancer 6 Complication days: 1859

Step by Step Solution

There are 3 Steps involved in it

Step: 1

To create a trigger in a SQL database that will generate a message when certain conditions are met y... 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

Students also viewed these Databases questions