Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1112
Table Type: Company
Table Name: Cost Center
Database Table Name: CRONUS UK Ltd_$Cost Center$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 Center can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Code]
,[Name]
,[Cost Subtype]
,[Responsible Person]
,[Sorting Order]
,[Comment]
,[Line Type]
,[Blocked]
,[New Page]
,[Blank Line]
,[Indentation]
,[Totaling]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[] AS [Cost Center]
LEFT JOIN
[CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type]
ON
[Cost Center].[Cost Type Filter] = [Cost Type].[No_]
LEFT JOIN
[User] AS [User]
ON
[Cost Center].[Responsible Person] = [User].[User Name]
LEFT JOIN
[User] AS [User]
ON
[Cost Center].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Cost Center].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Cost Center table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Code | Code | Normal | Code | 20 | Code | nvarchar(40) |
2 | Name | Name | Normal | Text | 50 | Name | nvarchar(100) |
3 | Cost Subtype | Cost Subtype | Normal | Option | 4 | Cost Subtype | int |
Available options are:
| |||||||
4 | Cost Type Filter | Cost Type Filter | FlowFilter | Code | 20 | ||
Key to join to the Cost Type table.Show/hide example querySELECT [Cost Center].[] ,[Cost Type].[No_] FROM [CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center] LEFT JOIN [CRONUS UK Ltd_$Cost Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Type] ON [Cost Center].[] = [Cost Type].[No_] | |||||||
5 | Date Filter | Date Filter | FlowFilter | Date | 4 | ||
6 | Net Change | Net Change | FlowField | Decimal | 12 | ||
7 | Balance at Date | Balance at Date | FlowField | Decimal | 12 | ||
8 | Balance to Allocate | Balance to Allocate | FlowField | Decimal | 12 | ||
9 | Responsible Person | Responsible Person | Normal | Code | 50 | Responsible Person | nvarchar(100) |
Key to join to the User table.Show/hide example querySELECT [Cost Center].[Responsible Person] ,[User].[User Name] FROM [CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center] LEFT JOIN [User] AS [User] ON [Cost Center].[Responsible Person] = [User].[User Name] | |||||||
10 | Sorting Order | Sorting Order | Normal | Code | 10 | Sorting Order | nvarchar(20) |
11 | Comment | Comment | Normal | Text | 50 | Comment | nvarchar(100) |
12 | Line Type | Line Type | Normal | Option | 4 | Line Type | int |
Available options are:
| |||||||
13 | Blocked | Blocked | Normal | Boolean | 4 | Blocked | tinyint |
14 | New Page | New Page | Normal | Boolean | 4 | New Page | tinyint |
15 | Blank Line | Blank Line | Normal | Boolean | 4 | Blank Line | tinyint |
16 | Indentation | Indentation | Normal | Integer | 4 | Indentation | int |
17 | Totaling | Totaling | Normal | Text | 250 | Totaling | nvarchar(500) |
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 Center].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center] LEFT JOIN [User] AS [User] ON [Cost Center].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |