Customer credit card information.
| Creation Date | 27/10/2017 14:33 |
| File Group | PRIMARY |
| Text File Group | |
| System Object | ![]() |
| Published for Replication | ![]() |
| Rows | 19118 |
| Data Space Used | 1,496.00 KB |
| Index Space Used | 832.00 KB |
| Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
|---|---|---|---|---|---|---|---|
| CreditCardID | Primary key for CreditCard records. | Integer | 4 | |||
| CardType | Credit card name. | VarWChar | 50 | ||||
| CardNumber | Credit card number. | VarWChar | 25 | ||||
| ExpMonth | Credit card expiration month. | UnsignedTinyInt | 1 | ||||
| ExpYear | Credit card expiration year. | SmallInt | 2 | ||||
| ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
| Index | Description | Primary | Unique |
|---|---|---|---|
| AK_CreditCard_CardNumber | Unique nonclustered index. | ![]() | |
| PK_CreditCard_CreditCardID | Primary key (clustered) constraint | ![]() | ![]() |
| Database Object | Object Type | Description | Dep Level | |
|---|---|---|---|---|
![]() | iduSalesOrderDetail | Trigger | AFTER INSERT, DELETE, UPDATE trigger that inserts a row in the TransactionHistory table, updates ModifiedDate in SalesOrderDetail and updates the SalesOrderHeader.SubTotal column. | 3 |
![]() | Sales.PersonCreditCard | Table | Cross-reference table mapping people to their credit card information in the CreditCard table. | 1 |
![]() | Sales.SalesOrderDetail | Table | Individual products associated with a specific sales order. See SalesOrderHeader. | 2 |
![]() | Sales.SalesOrderHeader | Table | General sales order information. | 1 |
![]() | Sales.SalesOrderHeaderSalesReason | Table | Cross-reference table mapping sales orders to sales reason codes. | 2 |
![]() | uSalesOrderHeader | Trigger | AFTER UPDATE trigger that updates the RevisionNumber and ModifiedDate columns in the SalesOrderHeader table.Updates the SalesYTD column in the SalesPerson and SalesTerritory tables. | 2 |
![]() | Sales.vSalesPersonSalesByFiscalYears | View | Uses PIVOT to return aggregated sales information for each sales representative. | 2 |
|