Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1105
Table Type: Company
Table Name: Cost Register
Database Table Name: CRONUS UK Ltd_$Cost Register$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 Register can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Cost Register$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Source]
,[Text]
,[From G_L Entry No_]
,[To G_L Entry No_]
,[From Cost Entry No_]
,[To Cost Entry No_]
,[No_ of Entries]
,[Debit Amount]
,[Credit Amount]
,[Processed Date]
,[Posting Date]
,[Closed]
,[Level]
,[Posting Time]
,[User ID]
,[Journal Batch Name]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Cost Register$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 Register$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Register]
LEFT JOIN
[User] AS [User]
ON
[Cost Register].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Cost Register].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Cost Register table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | No. | No. | Normal | Integer | 4 | No_ | int |
2 | Source | Source | Normal | Option | 4 | Source | int |
Available options are:
| |||||||
3 | Text | Text | Normal | Text | 30 | Text | nvarchar(60) |
4 | From G/L Entry No. | From G/L Entry No. | Normal | Integer | 4 | From G_L Entry No_ | int |
5 | To G/L Entry No. | To G/L Entry No. | Normal | Integer | 4 | To G_L Entry No_ | int |
6 | From Cost Entry No. | From Cost Entry No. | Normal | Integer | 4 | From Cost Entry No_ | int |
Key to join to the Cost Entry table.Show/hide example querySELECT [Cost Register].[From Cost Entry No_] ,[Cost Entry].[Entry No_] FROM [CRONUS UK Ltd_$Cost Register$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Register] LEFT JOIN [CRONUS UK Ltd_$Cost Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Entry] ON [Cost Register].[From Cost Entry No_] = [Cost Entry].[Entry No_] | |||||||
7 | To Cost Entry No. | To Cost Entry No. | Normal | Integer | 4 | To Cost Entry No_ | int |
Key to join to the Cost Entry table.Show/hide example querySELECT [Cost Register].[To Cost Entry No_] ,[Cost Entry].[Entry No_] FROM [CRONUS UK Ltd_$Cost Register$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Register] LEFT JOIN [CRONUS UK Ltd_$Cost Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Entry] ON [Cost Register].[To Cost Entry No_] = [Cost Entry].[Entry No_] | |||||||
8 | No. of Entries | No. of Entries | Normal | Integer | 4 | No_ of Entries | int |
15 | Debit Amount | Debit Amount | Normal | Decimal | 12 | Debit Amount | decimal(38,38) |
16 | Credit Amount | Credit Amount | Normal | Decimal | 12 | Credit Amount | decimal(38,38) |
20 | Processed Date | Processed Date | Normal | Date | 4 | Processed Date | datetime |
21 | Posting Date | Posting Date | Normal | Date | 4 | Posting Date | datetime |
23 | Closed | Closed | Normal | Boolean | 4 | Closed | tinyint |
25 | Level | Level | Normal | Integer | 4 | Level | int |
26 | Posting Time | Posting Time | Normal | Time | 4 | Posting Time | datetime |
31 | User ID | User ID | Normal | Code | 50 | User ID | nvarchar(100) |
32 | Journal Batch Name | Journal Batch Name | Normal | Code | 10 | Journal Batch Name | 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 [Cost Register].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Cost Register$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Register] LEFT JOIN [User] AS [User] ON [Cost Register].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |