Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There shoul be 7 Violated Data Integrity rules. Find violated data integrity rules 1 ) . Each Vendor has a unique VendorId. Each activity

There shoul be 7 Violated Data Integrity rules. Find violated data integrity rules "1). Each Vendor has a unique VendorId. Each activity has a unique code. Each PurchaseOrder has a unique POnumber. Each payment has a unique payment number. (Hint: these tell you what can be used as the primary key for each table, which is associated with the entity integrity rules.)
2). Each payment must be associated with one POnumber.
3). The maximum budget of any activity is $350,000.
4). All Purchase Order expiration dates are on or after 1/1/2019.
5). Each payment can correspond to multiple activity codes. For each payment, the database records the amount coming from each activity code.
Vendor: (VendorId, Vname, Address, Phone)
VendorID VName Address Phone#
V1001123 COMPANY 123 MAIN ST 202-555-0196
V1002 WAYNE ENTERPRISES 1010 WAYNE ST 202-555-0104
V1003 STARK INDUSTRIES 123442ND ST 202-555-0167
V1004 DUNDER MIFFLIN 1725 SLOUGH AVE 202-555-0101
V1005 OSCORP 1180 AVENUE 202-555-0117
ActivityCode: (Code, Fund, Appr. Thopriation, BudgetAmt)
Code Fund Appropriation BudgetAmt
ENHP Investment Fund Enhancement Projects $350,000.00
FOPR Program Costs Field Operations Projects $50,000.00
LGSP Legal Services Legislative Projects $25,000.00
OFFN Misc Costs Official Functions Expense $10,000.00
PurchaseOrder: (PONumber, POAmt, ExprDate, Description, VendorID) Foreign Keys: VendorID
PONumber POAmt ExprDate Description Status VendorID
PO201 $15,000.0019-Dec-18 REMODEL SLB PROPERTY APPROVED V1001
PO202 $25,000.0015-Jan-19 DESIGN FOR RANCH APPROVED V1002
PO203 $500.0026-Apr-19 PEST REMOVAL COMPLETED V1003
PO204 $1,000.0031-May-19 LEGAL REVIEW APPROVED V1006
PO205 $250.0029-Jun-19 OFFICE SUPPLIES PENDING V1004
PO206 $5,000.0031-May-19 EQUIPMENT PENDING V1002
Payment: (PmtNumber, InvNumber, InvDate, PmtAmt, PONumber) Foreign Key: PONumber
PmtNumber InvNumber InvDate PmtAmt PONumber
1234622-Apr-19 $2,000.00 PO201
2137812-Mar-19 $10,000.00 PO202
3348227-Apr-19 $500.00 PO204
4250302-Apr-19 $1,000.00
5869610-Apr-19 $1,000.00 PO201
6342025-Apr-19 $1,000.00 PO202
7479326-Apr-19 $5,000.00 PO201
8596829-Apr-19 $250.00 PO204
8483402-May-19 $100.00 PO204
10583903-May-19 $2,000.00 PO201
PaymentCode: (PmtNumber, ActivityCode, PmtAmount). Foreign Keys: PmtNumber, ActivityCode
PmtNumber ActivityCode PmtAmount
1 ENHP $2,000.00
2 ENHP $9,000.00
2 $1,000.00
3 ENHP $500.00
5 ENHP $1,000.00
6 ENHP $1,000.00
7 ENHP $4,000.00
7 OFFN $1,000.00
8 OFFN $100.00
8 ENHP $100.00
8 ENHP $50.00
9 ENHP $100.00"

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

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

Learn the pros and cons of different sampling techniques

Answered: 1 week ago

Question

Use a three-step process to develop effective business messages.

Answered: 1 week ago