Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/4763
Table Type: Company
Table Name: Whse Demo Data Setup
Database Table Name: CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31
Due to how Dynamics BC tables and columns are named, square brackets need to be wrapped around the table name and column names. Below are example queries showing how Whse Demo Data Setup can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31]
Show/hide an example select of all columns by name
SELECT
[Primary Key]
,[Is DemoData Populated]
,[Starting Year]
,[Working Date]
,[Company Type]
,[Adjust for Payment Discount]
,[Retail Code]
,[Domestic Code]
,[Resale Code]
,[VAT Prod_ Posting Group Code]
,[Price Factor]
,[Rounding Precision]
,[Customer No_]
,[Cust_ Posting Group]
,[Cust_ Gen_ Bus_ Posting Group]
,[Vendor No_]
,[Vendor Posting Group]
,[Vend_ Gen_ Bus_ Posting Group]
,[Item 1 No_]
,[Item 2 No_]
,[Item 3 No_]
,[Customer VAT Bus_ Code]
,[Vendor VAT Bus_ Code]
,[Location Bin]
,[Location Adv Logistics]
,[Location Directed Pick]
,[Location In-Transit]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup]
LEFT JOIN
[CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group]
ON
[Whse Demo Data Setup].[Retail Code] = [Gen. Product Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Posting Group]
ON
[Whse Demo Data Setup].[Resale Code] = [Inventory Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Vendor Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor Posting Group]
ON
[Whse Demo Data Setup].[Vendor Posting Group] = [Vendor Posting Group].[Code]
LEFT JOIN
[User] AS [User]
ON
[Whse Demo Data Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Whse Demo Data Setup].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Whse Demo Data Setup table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Primary Key | Primary Key | Normal | Integer | 4 | Primary Key | int |
2 | Is DemoData Populated | Is DemoData Populated | Normal | Boolean | 4 | Is DemoData Populated | tinyint |
8 | Starting Year | Starting Year | Normal | Integer | 4 | Starting Year | int |
9 | Working Date | Working Date | Normal | Date | 4 | Working Date | datetime |
17 | Company Type | Company Type | Normal | Option | 4 | Company Type | int |
Available options are:
| |||||||
24 | Adjust for Payment Discount | Adjust for Payment Discount | Normal | Boolean | 4 | Adjust for Payment Discount | tinyint |
31 | Retail Code | Retail – Gen. Prod. Posting Group | Normal | Code | 20 | Retail Code | nvarchar(40) |
Key to join to the Gen. Product Posting Group table.Show/hide example querySELECT [Whse Demo Data Setup].[Retail Code] ,[Gen. Product Posting Group].[Code] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group] ON [Whse Demo Data Setup].[Retail Code] = [Gen. Product Posting Group].[Code] | |||||||
34 | Domestic Code | Domestic – Tax Posting Group | Normal | Code | 10 | Domestic Code | nvarchar(20) |
35 | Resale Code | Resale – Inventory Posting Group | Normal | Code | 20 | Resale Code | nvarchar(40) |
Key to join to the Inventory Posting Group table.Show/hide example querySELECT [Whse Demo Data Setup].[Resale Code] ,[Inventory Posting Group].[Code] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Inventory Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Posting Group] ON [Whse Demo Data Setup].[Resale Code] = [Inventory Posting Group].[Code] | |||||||
36 | VAT Prod. Posting Group Code | Tax Prod. Posting Group Code | Normal | Code | 20 | VAT Prod_ Posting Group Code | nvarchar(40) |
Key to join to the VAT Product Posting Group table.Show/hide example querySELECT [Whse Demo Data Setup].[VAT Prod_ Posting Group Code] ,[VAT Product Posting Group].[Code] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group] ON [Whse Demo Data Setup].[VAT Prod_ Posting Group Code] = [VAT Product Posting Group].[Code] | |||||||
38 | Price Factor | Price Factor | Normal | Decimal | 12 | Price Factor | decimal(38,38) |
39 | Rounding Precision | Rounding Precision | Normal | Decimal | 12 | Rounding Precision | decimal(38,38) |
40 | Customer No. | Customer No. | Normal | Code | 20 | Customer No_ | nvarchar(40) |
Key to join to the Customer table.Show/hide example querySELECT [Whse Demo Data Setup].[Customer No_] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Whse Demo Data Setup].[Customer No_] = [Customer].[No_] | |||||||
41 | Cust. Posting Group | Cust. Posting Group | Normal | Code | 20 | Cust_ Posting Group | nvarchar(40) |
Key to join to the Customer Posting Group table.Show/hide example querySELECT [Whse Demo Data Setup].[Cust_ Posting Group] ,[Customer Posting Group].[Code] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Customer Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Posting Group] ON [Whse Demo Data Setup].[Cust_ Posting Group] = [Customer Posting Group].[Code] | |||||||
42 | Cust. Gen. Bus. Posting Group | Cust. Gen. Bus. Posting Group | Normal | Code | 20 | Cust_ Gen_ Bus_ Posting Group | nvarchar(40) |
Key to join to the Gen. Business Posting Group table.Show/hide example querySELECT [Whse Demo Data Setup].[Cust_ Gen_ Bus_ Posting Group] ,[Gen. Business Posting Group].[Code] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Gen_ Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Business Posting Group] ON [Whse Demo Data Setup].[Cust_ Gen_ Bus_ Posting Group] = [Gen. Business Posting Group].[Code] | |||||||
50 | Vendor No. | Vendor No. | Normal | Code | 20 | Vendor No_ | nvarchar(40) |
Key to join to the Vendor table.Show/hide example querySELECT [Whse Demo Data Setup].[Vendor No_] ,[Vendor].[No_] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor] ON [Whse Demo Data Setup].[Vendor No_] = [Vendor].[No_] | |||||||
51 | Vendor Posting Group | Vendor Posting Group | Normal | Code | 20 | Vendor Posting Group | nvarchar(40) |
Key to join to the Vendor Posting Group table.Show/hide example querySELECT [Whse Demo Data Setup].[Vendor Posting Group] ,[Vendor Posting Group].[Code] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Vendor Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor Posting Group] ON [Whse Demo Data Setup].[Vendor Posting Group] = [Vendor Posting Group].[Code] | |||||||
52 | Vend. Gen. Bus. Posting Group | Vend. Gen. Bus. Posting Group | Normal | Code | 20 | Vend_ Gen_ Bus_ Posting Group | nvarchar(40) |
Key to join to the Gen. Business Posting Group table.Show/hide example querySELECT [Whse Demo Data Setup].[Vend_ Gen_ Bus_ Posting Group] ,[Gen. Business Posting Group].[Code] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Gen_ Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Business Posting Group] ON [Whse Demo Data Setup].[Vend_ Gen_ Bus_ Posting Group] = [Gen. Business Posting Group].[Code] | |||||||
60 | Item 1 No. | Item 1 No. | Normal | Code | 20 | Item 1 No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Whse Demo Data Setup].[Item 1 No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Whse Demo Data Setup].[Item 1 No_] = [Item].[No_] | |||||||
61 | Item 2 No. | Item 2 No. | Normal | Code | 20 | Item 2 No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Whse Demo Data Setup].[Item 2 No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Whse Demo Data Setup].[Item 2 No_] = [Item].[No_] | |||||||
62 | Item 3 No. | Item 3 No. | Normal | Code | 20 | Item 3 No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Whse Demo Data Setup].[Item 3 No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Whse Demo Data Setup].[Item 3 No_] = [Item].[No_] | |||||||
63 | Customer VAT Bus. Code | Customer – Tax Business Posting Group | Normal | Code | 20 | Customer VAT Bus_ Code | nvarchar(40) |
Key to join to the VAT Business Posting Group table.Show/hide example querySELECT [Whse Demo Data Setup].[Customer VAT Bus_ Code] ,[VAT Business Posting Group].[Code] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Business Posting Group] ON [Whse Demo Data Setup].[Customer VAT Bus_ Code] = [VAT Business Posting Group].[Code] | |||||||
64 | Vendor VAT Bus. Code | Vendor – Tax Business Posting Group | Normal | Code | 20 | Vendor VAT Bus_ Code | nvarchar(40) |
Key to join to the VAT Business Posting Group table.Show/hide example querySELECT [Whse Demo Data Setup].[Vendor VAT Bus_ Code] ,[VAT Business Posting Group].[Code] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Business Posting Group] ON [Whse Demo Data Setup].[Vendor VAT Bus_ Code] = [VAT Business Posting Group].[Code] | |||||||
70 | Location Bin | Location Bin | Normal | Code | 10 | Location Bin | nvarchar(20) |
80 | Location Adv Logistics | Location Advanced | Normal | Code | 10 | Location Adv Logistics | nvarchar(20) |
90 | Location Directed Pick | Location Directed Pick and Put-away | Normal | Code | 10 | Location Directed Pick | nvarchar(20) |
100 | Location In-Transit | Location In-Transit | Normal | Code | 10 | Location In-Transit | nvarchar(20) |
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [Whse Demo Data Setup].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Whse Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Whse Demo Data Setup] LEFT JOIN [User] AS [User] ON [Whse Demo Data Setup].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |