AdventureWorks
| Table Name: | HumanResources.EmployeeAddress |
| Description: | Cross-reference table mapping employees to their address(es). |
| Primary Keys: | EmployeeID AddressID |
| Field | Type | Defaults | Nulls? | Comments |
|---|---|---|---|---|
| EmployeeID | int | None | No | Primary key. Foreign key to Employee.EmployeeID. |
| AddressID | int | None | No | Primary key. Foreign key to Address.AddressID. |
| rowguid | uniqueidentifier | (newid()) | No | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. |
| ModifiedDate | datetime | (getdate()) | No | Date and time the record was last updated. |
| Index | Clustered? | Unique? | Fields |
|---|---|---|---|
| PK_EmployeeAddress_EmployeeID_AddressID | Yes | Yes | EmployeeID AddressID |
| AK_EmployeeAddress_rowguid | No | Yes | rowguid |
| Internal Foreign Key Constraint | Affected Field | Source Table |
|---|---|---|
| FK_EmployeeAddress_Address_AddressID | AddressID | Person.Address |
| FK_EmployeeAddress_Employee_EmployeeID | EmployeeID | HumanResources.Employee |