Question: Q 2 ) Consider the following relations for a database that keeps track of business trips of salespersons in a sales office: SALESPERSON ( Ssn
Q Consider the following relations for a database that keeps track
of business trips of salespersons in a sales office:
SALESPERSONSsn Name, Startyear, Deptno
TRIPSsn Fromcity, Tocity, Departuredate, Returndate, Tripid
EXPENSETripid Account# Amount
A trip can be charged to one or more accounts. Specify the foreign
keys for this schema, stating any assumptions you make.
Solution:
Open Microsoft Office
N viviates icicicinal micymily nevause Divuivi allu urere is
no tuple in the DEPARTMENT relation with DNUMBER We
may enforce the constraint by: relecting the insertion of the
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
