Question: Which constraint is would be useful in this table? Foreign key (SalesRepPhone) referencesSalesRepAddrs SalesRepName VARCHAR(20) UNIQUE SalesRepGender CHAR CHECK(SalesRepGndr IN('M','F')) Primary key ( SalesID ,SalesRepName)

Which constraint is would be useful in this table?

  1. Foreign key (SalesRepPhone) references SalesRepAddrs
  2. SalesRepName VARCHAR(20) UNIQUE
  3. SalesRepGender CHAR CHECK(SalesRepGndr IN('M','F'))
  4. Primary key (SalesID, SalesRepName)

Please state the number and explain the answer.

SalesID

SalesRepName

SalesRepGndr

SalesRepPhone

AS0001

Anna Smith

F

0404040404

SF1021

Sam Fox

M

0444000444


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!