Question: Consider Figure 8.20. a. Write a domain integrity rule for Balance. b. Write a triggering operation for the Balance attribute for the event of inserting
Consider Figure 8.20.
a. Write a domain integrity rule for Balance.
b. Write a triggering operation for the Balance attribute for the event of inserting a new.
Figure 8.20
ACCOUNT Account Number Balance (al (bl (c) HH Is_for Uniqueness: Must be unique Null support: Non-null WITHDRAWAL Date Time Amount Name: Account Number Name: Amount Meaning: Customer account number in bank Meaning: Dollar amount of transaction Data type: Character Format: nnn-nnnn Data type: Numeric Format: 2 decimal places Range: 0-10,000 Uniqueness: Nonunique Null support: Non-null User rule: WITHDRAWAL Amount may not exceed ACCOUNT Balance Event: Insert Entity Name: WITHDRAWAL Condition: WITHDRAWAL Amount > ACCOUNT Balance Action: Reject the insert transaction
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
a Write a domain integrity rule for Balance The domain integrity rule for the Balance attribute in F... View full answer
Get step-by-step solutions from verified subject matter experts
