AdventureWorks2019
Sales.SalesPerson
//
Sales representative current information.
Created: Modified:
Columns
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[int] NULL
-
//${escapify(column.description)}[money] NULL//CONSTRAINT: Check constraint [SalesQuota] > (0.00)([SalesQuota]>(0.00))
-
//${escapify(column.description)}[money] NOT NULL DEFAULT ((0.00))//CONSTRAINT: Check constraint [Bonus] >= (0.00)([Bonus]>=(0.00))
-
//${escapify(column.description)}[smallmoney] NOT NULL DEFAULT ((0.00))//CONSTRAINT: Check constraint [CommissionPct] >= (0.00)([CommissionPct]>=(0.00))
-
//${escapify(column.description)}[money] NOT NULL DEFAULT ((0.00))//CONSTRAINT: Check constraint [SalesYTD] >= (0.00)([SalesYTD]>=(0.00))
-
//${escapify(column.description)}[money] NOT NULL DEFAULT ((0.00))//CONSTRAINT: Check constraint [SalesLastYear] >= (0.00)([SalesLastYear]>=(0.00))
-
//${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_SalesPerson_BusinessEntityIDUNIQUE CLUSTEREDBusinessEntityID
-
//Unique nonclustered index. Used to support replication samples.AK_SalesPerson_rowguidUNIQUE NONCLUSTEREDrowguid
Foreign Keys
-
//Foreign key constraint referencing Employee.EmployeeID.FK_SalesPerson_Employee_BusinessEntityIDHumanResources.EmployeeBusinessEntityID ⥱ BusinessEntityID
-
//Foreign key constraint referencing SalesTerritory.TerritoryID.FK_SalesPerson_SalesTerritory_TerritoryIDSales.SalesTerritoryTerritoryID ⥱ TerritoryID
Sample Data
BusinessEntityID
TerritoryID
SalesQuota
Bonus
CommissionPct
SalesYTD
SalesLastYear
rowguid
ModifiedDate
274
NULL
NULL
NULL
NULL
559697.5639
NULL
48754992-9EE0-4C0E-8C94-9451604E3E02
275
2
300000
4100
0.012
3763178.1787
1750406.4785
1E0A7274-3064-4F58-88EE-4C6586C87169
276
4
250000
2000
0.015
4251368.5497
1439156.0291
4DD9EEE4-8E81-4F8C-AF97-683394C1F7C0
277
3
250000
2500
0.015
3189418.3662
1997186.2037
39012928-BFEC-4242-874D-423162C3F567
278
6
250000
500
0.01
1453719.4653
1620276.8966
7A0AE1AB-B283-40F9-91D1-167ABF06D720
279
5
300000
6700
0.01
2315185.611
1849640.9418
52A5179D-3239-4157-AE29-17E868296DC0
280
1
250000
5000
0.01
1352577.1325
1927059.178
BE941A4A-FB50-4947-BDA4-BB8972365B08
281
4
250000
3550
0.01
2458535.6169
2073505.9999
35326DDB-7278-4FEF-B3BA-EA137B69094E
282
6
250000
5000
0.015
2604540.7172
2038234.6549
31FD7FC1-DC84-4F05-B9A0-762519EACACC
283
1
250000
3500
0.012
1573012.9383
1371635.3158
6BAC15B2-8FFB-45A9-B6D5-040E16C2073F
284
1
300000
3900
0.019
1576562.1966
NULL
AC94EC04-A2DC-43E3-8654-DD0C546ABC17
285
NULL
NULL
NULL
NULL
172524.4512
NULL
CFDBEF27-B1F7-4A56-A878-0221C73BAE67
286
9
250000
5650
0.018
1421810.9242
2278548.9776
9B968777-75DC-45BD-A8DF-9CDAA72839E1
287
NULL
NULL
NULL
NULL
519905.932
NULL
1DD1F689-DF74-4149-8600-59555EEF154B
288
8
250000
75
0.018
1827066.7118
1307949.7917
224BB25A-62E3-493E-ACAF-4F8F5C72396A
289
10
250000
5150
0.02
4116871.2277
1635823.3967
25F6838D-9DB4-4833-9DDC-7A24283AF1BA
290
7
250000
985
0.016
3121616.3202
2396539.7601
F509E3D4-76C8-42AA-B353-90B7B8DB08DE