WideWorldImporters
Purchasing.Suppliers
//
Main entity table for suppliers (organizations)
SYSTEM VERSIONED
Created: Modified:
Columns
-
//${escapify(column.description)}[int] NOT NULL DEFAULT (NEXT VALUE FOR [Sequences].[SupplierID])
-
//${escapify(column.description)}[nvarchar](100) NOT NULL
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[int] NULL
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[nvarchar](20) NULL
-
//${escapify(column.description)}[nvarchar](50) NULL//MASKING FUNCTIONdefault()
-
//${escapify(column.description)}[nvarchar](50) NULL//MASKING FUNCTIONdefault()
-
//${escapify(column.description)}[nvarchar](20) NULL//MASKING FUNCTIONdefault()
-
//${escapify(column.description)}[nvarchar](20) NULL//MASKING FUNCTIONdefault()
-
//${escapify(column.description)}[nvarchar](20) NULL//MASKING FUNCTIONdefault()
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[nvarchar](MAX) NULL
-
//${escapify(column.description)}[nvarchar](20) NOT NULL
-
//${escapify(column.description)}[nvarchar](20) NOT NULL
-
//${escapify(column.description)}[nvarchar](256) NOT NULL
-
//${escapify(column.description)}[nvarchar](60) NOT NULL
-
//${escapify(column.description)}[nvarchar](60) NULL
-
//${escapify(column.description)}[nvarchar](10) NOT NULL
-
//${escapify(column.description)}[geography] NULL
-
//${escapify(column.description)}[nvarchar](60) NOT NULL
-
//${escapify(column.description)}[nvarchar](60) NULL
-
//${escapify(column.description)}[nvarchar](10) NOT NULL
-
[int] NOT NULL
-
[datetime2](8) NOT NULL
-
[datetime2](8) NOT NULL
Indexes
-
PK_Purchasing_SuppliersUNIQUE CLUSTEREDSupplierID
-
UQ_Purchasing_Suppliers_SupplierNameUNIQUE NONCLUSTEREDSupplierName
-
//Auto-created to support a foreign keyFK_Purchasing_Suppliers_SupplierCategoryIDNONCLUSTEREDSupplierCategoryID
-
//Auto-created to support a foreign keyFK_Purchasing_Suppliers_PrimaryContactPersonIDNONCLUSTEREDPrimaryContactPersonID
-
//Auto-created to support a foreign keyFK_Purchasing_Suppliers_AlternateContactPersonIDNONCLUSTEREDAlternateContactPersonID
-
//Auto-created to support a foreign keyFK_Purchasing_Suppliers_DeliveryMethodIDNONCLUSTEREDDeliveryMethodID
-
//Auto-created to support a foreign keyFK_Purchasing_Suppliers_DeliveryCityIDNONCLUSTEREDDeliveryCityID
-
//Auto-created to support a foreign keyFK_Purchasing_Suppliers_PostalCityIDNONCLUSTEREDPostalCityID
Foreign Keys
-
FK_Purchasing_Suppliers_AlternateContactPersonID_Application_PeopleApplication.PeopleAlternateContactPersonID ⥱ PersonID
-
FK_Purchasing_Suppliers_Application_PeopleApplication.PeopleLastEditedBy ⥱ PersonID
-
FK_Purchasing_Suppliers_DeliveryCityID_Application_CitiesApplication.CitiesDeliveryCityID ⥱ CityID
-
FK_Purchasing_Suppliers_DeliveryMethodID_Application_DeliveryMethodsApplication.DeliveryMethodsDeliveryMethodID ⥱ DeliveryMethodID
-
FK_Purchasing_Suppliers_PostalCityID_Application_CitiesApplication.CitiesPostalCityID ⥱ CityID
-
FK_Purchasing_Suppliers_PrimaryContactPersonID_Application_PeopleApplication.PeoplePrimaryContactPersonID ⥱ PersonID
-
FK_Purchasing_Suppliers_SupplierCategoryID_Purchasing_SupplierCategoriesPurchasing.SupplierCategoriesSupplierCategoryID ⥱ SupplierCategoryID
Sample Data
SupplierID
SupplierName
SupplierCategoryID
PrimaryContactPersonID
AlternateContactPersonID
DeliveryMethodID
DeliveryCityID
PostalCityID
SupplierReference
BankAccountName
BankAccountBranch
BankAccountCode
BankAccountNumber
BankInternationalCode
PaymentDays
InternalComments
PhoneNumber
FaxNumber
WebsiteURL
DeliveryAddressLine1
DeliveryAddressLine2
DeliveryPostalCode
DeliveryLocation
PostalAddressLine1
PostalAddressLine2
PostalPostalCode
LastEditedBy
ValidFrom
ValidTo
1
A Datum Corporation
2
21
22
7
38171
38171
AA20384
A Datum Corporation
Woodgrove Bank Zionsville
356981
8575824136
25986
14
NULL
(847) 555-0100
(847) 555-0101
http://www.adatum.com
Suite 10
183838 Southwest Boulevard
46077
[geography]
PO Box 1039
Surrey
46077
1
2
Contoso, Ltd.
2
23
24
9
13870
13870
B2084020
Contoso Ltd
Woodgrove Bank Greenbank
358698
4587965215
25868
7
NULL
(360) 555-0100
(360) 555-0101
http://www.contoso.com
Unit 2
2934 Night Road
98253
[geography]
PO Box 1012
Jolimont
98253
1
3
Consolidated Messenger
6
25
26
NULL
30378
30378
209340283
Consolidated Messenger
Woodgrove Bank San Francisco
354269
3254872158
45698
30
NULL
(415) 555-0100
(415) 555-0101
http://www.consolidatedmessenger.com
NULL
894 Market Day Street
94101
[geography]
PO Box 1014
West Mont
94101
1
4
Fabrikam, Inc.
4
27
28
7
18557
18557
293092
Fabrikam Inc
Woodgrove Bank Lakeview Heights
789568
4125863879
12546
30
NULL
(203) 555-0104
(203) 555-0108
http://www.fabrikam.com
Level 2
393999 Woodberg Road
40351
[geography]
PO Box 301
Eaglemont
40351
1
5
Graphic Design Institute
2
29
30
10
18634
18634
08803922
Graphic Design Institute
Woodgrove Bank Lanagan
563215
1025869354
32587
14
NULL
(406) 555-0105
(406) 555-0106
http://www.graphicdesigninstitute.com
NULL
45th Street
64847
[geography]
PO Box 393
Willow
64847
1
6
Humongous Insurance
9
31
32
NULL
18656
18656
082420938
Humongous Insurance
Woodgrove Bank Lancing
325001
2569874521
32569
14
NULL
(423) 555-0105
(423) 555-0100
http://www.humongousinsurance.com
NULL
9893 Mount Norris Road
37770
[geography]
PO Box 94829
Boxville
37770
1
7
Litware, Inc.
5
33
34
2
22602
22602
BC0280982
Litware Inc
Woodgrove Bank Mokelumne Hill
358769
3256896325
21445
30
NULL
(209) 555-0108
(209) 555-0104
http://www.litwareinc.com
Level 3
19 Le Church Street
95245
[geography]
PO Box 20290
Jackson
95245
1
8
Lucerne Publishing
2
35
36
10
17161
17161
JQ082304802
Lucerne Publishing
Woodgrove Bank Jonesborough
654789
3254123658
21569
30
NULL
(423) 555-0103
(423) 555-0105
http://www.lucernepublishing.com
Suite 34
949482 Miller Boulevard
37659
[geography]
PO Box 8747
Westerfold
37659
1
9
Nod Publishers
2
37
38
10
10346
10346
GL08029802
Nod Publishers
Woodgrove Bank Elizabeth City
365985
2021545878
48758
7
Marcos is not in on Mondays
(252) 555-0100
(252) 555-0101
http://www.nodpublishers.com
Level 1
389 King Street
27906
[geography]
PO Box 3390
Anderson
27906
1
10
Northwind Electric Cars
3
39
40
8
7899
7899
ML0300202
Northwind Electric Cars
Woodgrove Bank Crandon Lakes
325447
3258786987
36214
30
NULL
(201) 555-0105
(201) 555-0104
http://www.northwindelectriccars.com
NULL
440 New Road
07860
[geography]
PO Box 30920
Arlington
07860
1
11
Trey Research
8
41
42
NULL
17277
17277
082304822
Trey Research
Woodgrove Bank Kadoka
658968
1254785321
56958
7
NULL
(605) 555-0103
(605) 555-0101
http://www.treyresearch.net
Level 43
9401 Polar Avenue
57543
[geography]
PO Box 595
Port Fairy
57543
1
12
The Phone Company
2
43
44
7
17346
17346
237408032
The Phone Company
Woodgrove Bank Karlstad
214568
7896236589
25478
30
NULL
(218) 555-0105
(218) 555-0105
http://www.thephone-company.com
Level 83
339 Toorak Road
56732
[geography]
PO Box 3837
Ferny Wood
56732
1
13
Woodgrove Bank
7
45
46
NULL
30378
30378
028034202
Woodgrove Bank
Woodgrove Bank San Francisco
325698
2147825698
65893
7
Only speak to Donald if Hubert really is not available
(415) 555-0103
(415) 555-0107
http://www.woodgrovebank.com
Level 3
8488 Vienna Boulevard
94101
[geography]
PO Box 2390
Canterbury
94101
1