AdventureWorks2019
Person.Person
//
Human beings involved with AdventureWorks: employees, customer contacts, and vendor contacts.
Created: Modified:
Columns
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[nchar](2) NOT NULL//CONSTRAINT: Check constraint [PersonType] is one of SC, VC, IN, EM or SP.([PersonType] IS NULL OR (upper([PersonType])='GC' OR upper([PersonType])='SP' OR upper([PersonType])='EM' OR upper([PersonType])='IN' OR upper([PersonType])='VC' OR upper([PersonType])='SC'))
-
//${escapify(column.description)}[NameStyle] NOT NULL DEFAULT ((0))//USER-DEFINED DATA TYPE[bit] NOT NULL
-
//${escapify(column.description)}[nvarchar](8) NULL
-
//${escapify(column.description)}[Name] NOT NULL//USER-DEFINED DATA TYPE[nvarchar](50) NULL
-
//${escapify(column.description)}[Name] NULL//USER-DEFINED DATA TYPE[nvarchar](50) NULL
-
//${escapify(column.description)}[Name] NOT NULL//USER-DEFINED DATA TYPE[nvarchar](50) NULL
-
//${escapify(column.description)}[nvarchar](10) NULL
-
//${escapify(column.description)}[int] NOT NULL DEFAULT ((0))//CONSTRAINT: Check constraint [EmailPromotion] >= (0) AND [EmailPromotion] <= (2)([EmailPromotion]>=(0) AND [EmailPromotion]<=(2))
-
//${escapify(column.description)}[xml] NULL
-
//${escapify(column.description)}[xml] NULL
-
//${escapify(column.description)}[uniqueidentifier] NOT NULL DEFAULT (newid())
-
//${escapify(column.description)}[datetime] NOT NULL DEFAULT (getdate())
Indexes
-
//Clustered index created by a primary key constraint.PK_Person_BusinessEntityIDUNIQUE CLUSTEREDBusinessEntityID
-
IX_Person_LastName_FirstName_MiddleNameNONCLUSTEREDLastName , FirstName , MiddleName
-
//Unique nonclustered index. Used to support replication samples.AK_Person_rowguidUNIQUE NONCLUSTEREDrowguid
-
//Primary XML index.PXML_Person_AddContactXMLAdditionalContactInfo
-
//Primary XML index.PXML_Person_DemographicsXMLDemographics
-
//Secondary XML index for path.XMLPATH_Person_DemographicsXMLDemographics
-
//Secondary XML index for property.XMLPROPERTY_Person_DemographicsXMLDemographics
-
//Secondary XML index for value.XMLVALUE_Person_DemographicsXMLDemographics
Foreign Keys
-
//Foreign key constraint referencing BusinessEntity.BusinessEntityID.FK_Person_BusinessEntity_BusinessEntityIDPerson.BusinessEntityBusinessEntityID ⥱ BusinessEntityID
Sample Data
BusinessEntityID
PersonType
NameStyle
Title
FirstName
MiddleName
LastName
Suffix
EmailPromotion
AdditionalContactInfo
Demographics
rowguid
ModifiedDate
1
EM
NULL
NULL
Ken
J
Sánchez
NULL
NULL
[xml]
[xml]
92C4279F-1207-48A3-8448-4636514EB7E2
2
EM
NULL
NULL
Terri
Lee
Duffy
NULL
1
[xml]
[xml]
D8763459-8AA8-47CC-AFF7-C9079AF79033
3
EM
NULL
NULL
Roberto
NULL
Tamburello
NULL
NULL
[xml]
[xml]
E1A2555E-0828-434B-A33B-6F38136A37DE
4
EM
NULL
NULL
Rob
NULL
Walters
NULL
NULL
[xml]
[xml]
F2D7CE06-38B3-4357-805B-F4B6B71C01FF
5
EM
NULL
Ms.
Gail
A
Erickson
NULL
NULL
[xml]
[xml]
F3A3F6B4-AE3B-430C-A754-9F2231BA6FEF
6
EM
NULL
Mr.
Jossef
H
Goldberg
NULL
NULL
[xml]
[xml]
0DEA28FD-EFFE-482A-AFD3-B7E8F199D56F
7
EM
NULL
NULL
Dylan
A
Miller
NULL
2
[xml]
[xml]
C45E8AB8-01BE-4B76-B215-820C8368181A
8
EM
NULL
NULL
Diane
L
Margheim
NULL
NULL
[xml]
[xml]
A948E590-4A56-45A9-BC9A-160A1CC9D990
9
EM
NULL
NULL
Gigi
N
Matthew
NULL
NULL
[xml]
[xml]
5FC28C0E-6D36-4252-9846-05CAA0B1F6C5
10
EM
NULL
NULL
Michael
NULL
Raheem
NULL
2
[xml]
[xml]
CA2C740E-75B2-420C-9D4B-E3CBC6609604
11
EM
NULL
NULL
Ovidiu
V
Cracium
NULL
NULL
[xml]
[xml]
D2CC2577-EF6B-4408-BD8C-747337FE5645
12
EM
NULL
NULL
Thierry
B
D'Hers
NULL
2
[xml]
[xml]
FA263C7F-600D-4E89-8DCD-0978F3530F5F
13
EM
NULL
Ms.
Janice
M
Galvin
NULL
2
[xml]
[xml]
34EB99E0-7042-4DC1-A2FD-BDA290FF0E07
14
EM
NULL
NULL
Michael
I
Sullivan
NULL
2
[xml]
[xml]
9A7501DE-5CAF-4700-AB07-CC81102BB696
15
EM
NULL
NULL
Sharon
B
Salavaria
NULL
2
[xml]
[xml]
BEBA63CB-13F1-4B76-A3DE-FE9AC283A94C
16
EM
NULL
NULL
David
M
Bradley
NULL
1
[xml]
[xml]
2CC8BA72-5DBB-497F-B941-775517993638
17
EM
NULL
NULL
Kevin
F
Brown
NULL
2
[xml]
[xml]
9EE4713E-B3D8-4409-BC5E-DEC62497F43A
18
EM
NULL
NULL
John
L
Wood
NULL
2
[xml]
[xml]
FE21BDA7-9327-4D13-89CC-8CA5CEE8F21E
19
EM
NULL
NULL
Mary
A
Dempsey
NULL
1
[xml]
[xml]
36F04305-6769-4E61-9143-048B2B7AFA20
20
EM
NULL
NULL
Wanida
M
Benshoof
NULL
2
[xml]
[xml]
1E7E56F4-A583-4E3F-A3FE-BA8A71096D10
21
EM
NULL
NULL
Terry
J
Eminhizer
NULL
2
[xml]
[xml]
6A288FE0-D9CB-4DA2-BEEA-51370220490C
22
EM
NULL
NULL
Sariya
E
Harnpadoungsataya
NULL
NULL
[xml]
[xml]
276E0EB5-0CE7-443F-987F-B7EF293C0930
23
EM
NULL
NULL
Mary
E
Gibson
NULL
NULL
[xml]
[xml]
B10CF8EB-5589-4A81-B1BD-051C5759CE06
24
EM
NULL
Ms.
Jill
A
Williams
NULL
NULL
[xml]
[xml]
3F605060-96AD-4201-9BE2-BFE7A3C4E468
25
EM
NULL
NULL
James
R
Hamilton
NULL
NULL
[xml]
[xml]
423FE59B-7975-4A7E-B8D2-87105C286D4C