Description
Résumés submitted to Human Resources by job applicants.
Table properties
| name | value |
|---|
| name | [HumanResources].[JobCandidate] |
| created | Mar 19 2009 9:08PM |
| modified | Mar 19 2009 9:08PM
|
| ansi nulls | on
|
| quoted identifier | on
|
| row count | 13 |
| Size of data | 128 kb |
| Size of indexes | 32 kb |
| Maximum size of a single row | 2,147,483,662 bytes |
Columns
| column | datatype | length | bytes | default | nulls | PK | FK | UQ | computed | comment |
|---|
| JobCandidateID | int identity(1,1) | 10 | 4 | | no
| yes
| |
| no
| Primary key for JobCandidate records.
|
| EmployeeID | int | 10 | 4 | | yes
|
| Employee.EmployeeID
|
| no
| Employee identification number if applicant was hired. Foreign key to Employee.EmployeeID.
|
| Resume | xml | max | 2147483646 | | yes
|
| |
| no
| Résumé in XML format.
|
| ModifiedDate | datetime | 23 | 8 | (getdate()) | no
|
| |
| no
| Date and time the record was last updated.
|
Indexes
References
Foreign key graph
Foreign keys
| name | columns | foreign columns | type | comment |
|---|
| FK_JobCandidate_Employee_EmployeeID | EmployeeID | Employee.EmployeeID |
| Foreign key constraint referencing Employee.EmployeeID.
|
Defaults
Dependency graph
Objects that depend on [HumanResources].[JobCandidate]
Sample rows
| JobCandidateID | EmployeeID | Resume | ModifiedDate |
|---|
| 1
| NULL
| <ns:Resume xmlns:ns="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume"><ns:Name...
| 7/24/1997 12:00:00 AM
|
| 2
| NULL
| <ns:Resume xmlns:ns="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume"><ns:Name...
| 7/24/1997 12:00:00 AM
|
| 3
| NULL
| <ns:Resume xmlns:ns="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume"><ns:Name...
| 7/24/1997 12:00:00 AM
|
| 4
| 268
| <ns:Resume xmlns:ns="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume"><ns:Name...
| 1/23/2004 6:32:21 PM
|
| 5
| NULL
| <ns:Resume xmlns:ns="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume"><ns:Name...
| 7/24/1997 12:00:00 AM
|
| 6
| NULL
| <ns:Resume xmlns:ns="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume"><ns:Name...
| 7/24/1997 12:00:00 AM
|
| 7
| NULL
| <ns:Resume xmlns:ns="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume"><ns:Name...
| 7/24/1997 12:00:00 AM
|
| 8
| 41
| <ns:Resume xmlns:ns="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume"><ns:Name...
| 1/23/2004 6:32:21 PM
|
| 9
| NULL
| <ns:Resume xmlns:ns="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume"><ns:Name...
| 7/24/1997 12:00:00 AM
|
| 10
| NULL
| <ns:Resume xmlns:ns="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/Resume"><ns:Name...
| 7/24/1997 12:00:00 AM
|
Code
CREATE TABLE [HumanResources].[JobCandidate](
[JobCandidateID] [int] IDENTITY(1,1) NOT NULL,
[EmployeeID] [int] NULL,
[JobCandidateID] [int] IDENTITY(1,1) NOT NULL,
[Resume] [xml](CONTENT [HumanResources].[HRResumeSchemaCollection]) NULL,
[ModifiedDate] [datetime] NOT NULL,
CONSTRAINT [PK_JobCandidate_JobCandidateID] PRIMARY KEY CLUSTERED
(
[JobCandidateID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [HumanResources].[JobCandidate] WITH CHECK ADD CONSTRAINT [FK_JobCandidate_Employee_EmployeeID] FOREIGN KEY([EmployeeID])
REFERENCES [HumanResources].[Employee] ([EmployeeID])
ALTER TABLE [HumanResources].[JobCandidate] CHECK CONSTRAINT [FK_JobCandidate_Employee_EmployeeID]
ALTER TABLE [HumanResources].[JobCandidate] ADD CONSTRAINT [DF_JobCandidate_ModifiedDate] DEFAULT (getdate()) FOR [ModifiedDate]