Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code the PL/SQL module for: Trigger to enforce the referential integrity for the Transaction Ref_Nbr: ( 3 marks ) Deposit or Withdrawal transaction to Bank

Code the PL/SQL module for:

  • Trigger to enforce the referential integrity for the Transaction Ref_Nbr: (3 marks)

    • Deposit or Withdrawal transaction to Bank Branch

    • Bill Payment, Debit Purchase, or Return transaction to Merchant

Below are the tables needed for this question.

Tx_Type table will contain the code and description for the transaction.

ie. Tx_Type_Code: D, Tx_Type_Descript: Deposit

image text in transcribed

TRANSACTION TX_TYPE_LOOKUP_FK TX_TYPE Tx Type Code Tx Type Descript Tx Nbr Account Nbr Tx Type Code Tx Date Tx Amount Ref Nbr MERCHANT BANK_BRANCH Branch Nbr Branch Name Merchant Nbr Merchant_Name TRANSACTION TX_TYPE_LOOKUP_FK TX_TYPE Tx Type Code Tx Type Descript Tx Nbr Account Nbr Tx Type Code Tx Date Tx Amount Ref Nbr MERCHANT BANK_BRANCH Branch Nbr Branch Name Merchant Nbr Merchant_Name

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

The paleolithic age human life, short write up ?

Answered: 1 week ago

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago