Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/4760
Table Type: Company
Table Name: Manufacturing Demo Data Setup
Database Table Name: CRONUS UK Ltd_$Manufacturing 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 Manufacturing Demo Data Setup can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Manufacturing 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]
,[Base VAT Code]
,[Adjust for Payment Discount]
,[Finished Code]
,[Retail Code]
,[Raw Mat Code]
,[Manufact Code]
,[Domestic Code]
,[Manufacturing Location]
,[Price Factor]
,[Rounding Precision]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Manufacturing 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_$Manufacturing Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Manufacturing Demo Data Setup]
LEFT JOIN
[CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group]
ON
[Manufacturing Demo Data Setup].[Base VAT Code] = [VAT Product Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Posting Group]
ON
[Manufacturing Demo Data Setup].[Finished Code] = [Inventory Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group]
ON
[Manufacturing Demo Data Setup].[Retail Code] = [Gen. Product Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group]
ON
[Manufacturing Demo Data Setup].[Raw Mat Code] = [Gen. Product Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group]
ON
[Manufacturing Demo Data Setup].[Manufact Code] = [Gen. Product Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Manufacturing Demo Data Setup].[Manufacturing Location] = [Location].[Code]
LEFT JOIN
[User] AS [User]
ON
[Manufacturing Demo Data Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Manufacturing Demo Data Setup].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Manufacturing 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:
| |||||||
18 | Base VAT Code | Base Tax Code | Normal | Code | 20 | Base VAT Code | nvarchar(40) |
Key to join to the VAT Product Posting Group table.Show/hide example querySELECT [Manufacturing Demo Data Setup].[Base VAT Code] ,[VAT Product Posting Group].[Code] FROM [CRONUS UK Ltd_$Manufacturing Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Manufacturing Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group] ON [Manufacturing Demo Data Setup].[Base VAT Code] = [VAT Product Posting Group].[Code] | |||||||
24 | Adjust for Payment Discount | Adjust for Payment Discount | Normal | Boolean | 4 | Adjust for Payment Discount | tinyint |
30 | Finished Code | Finished Code | Normal | Code | 20 | Finished Code | nvarchar(40) |
Key to join to the Inventory Posting Group table.Show/hide example querySELECT [Manufacturing Demo Data Setup].[Finished Code] ,[Inventory Posting Group].[Code] FROM [CRONUS UK Ltd_$Manufacturing Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Manufacturing Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Inventory Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Posting Group] ON [Manufacturing Demo Data Setup].[Finished Code] = [Inventory Posting Group].[Code] | |||||||
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 [Manufacturing Demo Data Setup].[Retail Code] ,[Gen. Product Posting Group].[Code] FROM [CRONUS UK Ltd_$Manufacturing Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Manufacturing Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group] ON [Manufacturing Demo Data Setup].[Retail Code] = [Gen. Product Posting Group].[Code] | |||||||
32 | Raw Mat Code | Raw Mat – Gen. Prod. Posting Group | Normal | Code | 20 | Raw Mat Code | nvarchar(40) |
Key to join to the Gen. Product Posting Group table.Show/hide example querySELECT [Manufacturing Demo Data Setup].[Raw Mat Code] ,[Gen. Product Posting Group].[Code] FROM [CRONUS UK Ltd_$Manufacturing Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Manufacturing Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group] ON [Manufacturing Demo Data Setup].[Raw Mat Code] = [Gen. Product Posting Group].[Code] | |||||||
33 | Manufact Code | Capacity – Gen. Prod. Posting Group | Normal | Code | 20 | Manufact Code | nvarchar(40) |
Key to join to the Gen. Product Posting Group table.Show/hide example querySELECT [Manufacturing Demo Data Setup].[Manufact Code] ,[Gen. Product Posting Group].[Code] FROM [CRONUS UK Ltd_$Manufacturing Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Manufacturing Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group] ON [Manufacturing Demo Data Setup].[Manufact Code] = [Gen. Product Posting Group].[Code] | |||||||
34 | Domestic Code | Domestic – Gen. Bus. Posting Group | Normal | Code | 20 | Domestic Code | nvarchar(40) |
37 | Manufacturing Location | Manufacturing Location | Normal | Code | 10 | Manufacturing Location | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Manufacturing Demo Data Setup].[Manufacturing Location] ,[Location].[Code] FROM [CRONUS UK Ltd_$Manufacturing Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Manufacturing Demo Data Setup] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Manufacturing Demo Data Setup].[Manufacturing Location] = [Location].[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) |
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 [Manufacturing Demo Data Setup].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Manufacturing Demo Data Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Manufacturing Demo Data Setup] LEFT JOIN [User] AS [User] ON [Manufacturing 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 |