Databases > AdventureWorks2019 > Tables > Sales.PersonCreditCard

AdventureWorks2019

Sales.PersonCreditCard

//
Cross-reference table mapping people to their credit card information in the CreditCard table.

Created: Modified:

Columns

  • //
    ${escapify(column.description)}
    BusinessEntityID
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    CreditCardID
    [int] NOT NULL
  • //
    ${escapify(column.description)}
    ModifiedDate
    [datetime] NOT NULL DEFAULT (getdate())

Indexes

  • //
    Clustered index created by a primary key constraint.
    PK_PersonCreditCard_BusinessEntityID_CreditCardID
    UNIQUE CLUSTERED
    BusinessEntityID , CreditCardID

Foreign Keys

  • //
    Foreign key constraint referencing CreditCard.CreditCardID.
    FK_PersonCreditCard_CreditCard_CreditCardID
    Sales.CreditCard
    CreditCardID ⥱ CreditCardID
  • //
    Foreign key constraint referencing Person.BusinessEntityID.
    FK_PersonCreditCard_Person_BusinessEntityID
    Person.Person
    BusinessEntityID ⥱ BusinessEntityID

Sample Data

BusinessEntityID
CreditCardID
ModifiedDate
293
17038
295
15369
297
8010
299
5316
301
6653
303
9010
305
8937
307
16124
309
9478
311
17600
313
1970
315
8274
317
13045
319
13601
323
5958
325
10709
327
126
329
6626
331
14963
333
18100
335
12823
337
11434
339
13160
341
3787
343
8979