Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1103
Table Type: Company
Table Name: Cost Type
Database Table Name: CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972
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 Cost Type can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Name]
,[Search Name]
,[Type]
,[Cost Center Code]
,[Cost Object Code]
,[Combine Entries]
,[Blocked]
,[New Page]
,[Blank Line]
,[Indentation]
,[Comment]
,[Cost Classification]
,[Fixed Share]
,[Modified Date]
,[Modified By]
,[Totaling]
,[Budget at Date]
,[G_L Account Range]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type]
LEFT JOIN
[CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center]
ON
[Cost Type].[Cost Center Code] = [Cost Center].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Object]
ON
[Cost Type].[Cost Object Code] = [Cost Object].[Code]
LEFT JOIN
[User] AS [User]
ON
[Cost Type].[Modified By] = [User].[User Name]
LEFT JOIN
[CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center]
ON
[Cost Type].[Cost Center Filter] = [Cost Center].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Object]
ON
[Cost Type].[Cost Object Filter] = [Cost Object].[Code]
LEFT JOIN
[CRONUS UK Ltd_$G_L Budget Name$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Budget Name]
ON
[Cost Type].[Budget Filter] = [G/L Budget Name].[Name]
LEFT JOIN
[User] AS [User]
ON
[Cost Type].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Cost Type].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Cost Type table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
2 | Name | Name | Normal | Text | 100 | Name | nvarchar(200) |
3 | Search Name | Search Name | Normal | Code | 100 | Search Name | nvarchar(200) |
4 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
6 | Cost Center Code | Cost Center Code | Normal | Code | 20 | Cost Center Code | nvarchar(40) |
Key to join to the Cost Center table.Show/hide example querySELECT [Cost Type].[Cost Center Code] ,[Cost Center].[Code] FROM [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type] LEFT JOIN [CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center] ON [Cost Type].[Cost Center Code] = [Cost Center].[Code] | |||||||
7 | Cost Object Code | Cost Object Code | Normal | Code | 20 | Cost Object Code | nvarchar(40) |
Key to join to the Cost Object table.Show/hide example querySELECT [Cost Type].[Cost Object Code] ,[Cost Object].[Code] FROM [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type] LEFT JOIN [CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Object] ON [Cost Type].[Cost Object Code] = [Cost Object].[Code] | |||||||
10 | Combine Entries | Combine Entries | Normal | Option | 4 | Combine Entries | int |
Available options are:
| |||||||
13 | Blocked | Blocked | Normal | Boolean | 4 | Blocked | tinyint |
17 | New Page | New Page | Normal | Boolean | 4 | New Page | tinyint |
18 | Blank Line | Blank Line | Normal | Boolean | 4 | Blank Line | tinyint |
19 | Indentation | Indentation | Normal | Integer | 4 | Indentation | int |
20 | Comment | Comment | Normal | Text | 50 | Comment | nvarchar(100) |
22 | Cost Classification | Cost Classification | Normal | Option | 4 | Cost Classification | int |
Available options are:
| |||||||
23 | Fixed Share | Fixed Share | Normal | Text | 30 | Fixed Share | nvarchar(60) |
26 | Modified Date | Modified Date | Normal | Date | 4 | Modified Date | datetime |
27 | Modified By | Modified By | Normal | Code | 50 | Modified By | nvarchar(100) |
Key to join to the User table.Show/hide example querySELECT [Cost Type].[Modified By] ,[User].[User Name] FROM [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type] LEFT JOIN [User] AS [User] ON [Cost Type].[Modified By] = [User].[User Name] | |||||||
28 | Date Filter | Date Filter | FlowFilter | Date | 4 | ||
29 | Cost Center Filter | Cost Center Filter | FlowFilter | Code | 20 | ||
Key to join to the Cost Center table.Show/hide example querySELECT [Cost Type].[] ,[Cost Center].[Code] FROM [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type] LEFT JOIN [CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center] ON [Cost Type].[] = [Cost Center].[Code] | |||||||
30 | Cost Object Filter | Cost Object Filter | FlowFilter | Code | 20 | ||
Key to join to the Cost Object table.Show/hide example querySELECT [Cost Type].[] ,[Cost Object].[Code] FROM [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type] LEFT JOIN [CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Object] ON [Cost Type].[] = [Cost Object].[Code] | |||||||
31 | Balance at Date | Balance at Date | FlowField | Decimal | 12 | ||
32 | Net Change | Net Change | FlowField | Decimal | 12 | ||
33 | Budget Amount | Budget Amount | FlowField | Decimal | 12 | ||
34 | Totaling | Totaling | Normal | Text | 250 | Totaling | nvarchar(500) |
35 | Budget Filter | Budget Filter | FlowFilter | Code | 10 | ||
Key to join to the G/L Budget Name table.Show/hide example querySELECT [Cost Type].[] ,[G/L Budget Name].[Name] FROM [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type] LEFT JOIN [CRONUS UK Ltd_$G_L Budget Name$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Budget Name] ON [Cost Type].[] = [G/L Budget Name].[Name] | |||||||
36 | Balance | Balance | FlowField | Decimal | 12 | ||
37 | Budget at Date | Budget at Date | Normal | Decimal | 12 | Budget at Date | decimal(38,38) |
40 | G/L Account Range | G/L Account Range | Normal | Text | 50 | G_L Account Range | nvarchar(100) |
47 | Debit Amount | Debit Amount | FlowField | Decimal | 12 | ||
48 | Credit Amount | Credit Amount | FlowField | Decimal | 12 | ||
51 | Balance to Allocate | Balance to Allocate | FlowField | Decimal | 12 | ||
60 | Budget Debit Amount | Budget Debit Amount | FlowField | Decimal | 12 | ||
72 | Budget Credit Amount | Budget Credit Amount | FlowField | Decimal | 12 | ||
73 | Add. Currency Net Change | Add. Currency Net Change | FlowField | Decimal | 12 | ||
74 | Add. Currency Balance at Date | Add. Currency Balance at Date | FlowField | Decimal | 12 | ||
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 [Cost Type].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type] LEFT JOIN [User] AS [User] ON [Cost Type].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |