Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/207
Table Type: Company
Table Name: Res. Journal Line
Database Table Name: CRONUS UK Ltd_$Res_ Journal Line$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 Res. Journal Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Journal Template Name]
,[Line No_]
,[Entry Type]
,[Document No_]
,[Posting Date]
,[Resource No_]
,[Resource Group No_]
,[Description]
,[Work Type Code]
,[Job No_]
,[Unit of Measure Code]
,[Quantity]
,[Direct Unit Cost]
,[Unit Cost]
,[Total Cost]
,[Unit Price]
,[Total Price]
,[Shortcut Dimension 1 Code]
,[Shortcut Dimension 2 Code]
,[Source Code]
,[Journal Batch Name]
,[Reason Code]
,[Recurring Method]
,[Expiration Date]
,[Recurring Frequency]
,[Gen_ Bus_ Posting Group]
,[Gen_ Prod_ Posting Group]
,[Document Date]
,[External Document No_]
,[Posting No_ Series]
,[Source Type]
,[Source No_]
,[Qty_ per Unit of Measure]
,[Order Type]
,[Order No_]
,[Order Line No_]
,[Dimension Set ID]
,[Time Sheet No_]
,[Time Sheet Line No_]
,[Time Sheet Date]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line]
LEFT JOIN
[CRONUS UK Ltd_$Work Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Work Type]
ON
[Res. Journal Line].[Work Type Code] = [Work Type].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Res. Journal Line].[Shortcut Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Res. Journal Line].[Shortcut Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Source Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Source Code]
ON
[Res. Journal Line].[Source Code] = [Source Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code]
ON
[Res. Journal Line].[Reason Code] = [Reason Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Res. Journal Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
[User] AS [User]
ON
[Res. Journal Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Res. Journal Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Res. Journal Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Journal Template Name ![]() | Journal Template Name | Normal | Code | 10 | Journal Template Name | nvarchar(20) |
2 | Line No. ![]() ![]() | Line No. | Normal | Integer | 4 | Line No_ | int |
3 | Entry Type ![]() ![]() | Entry Type | Normal | Option | 4 | Entry Type | int |
Available options are:
| |||||||
4 | Document No. ![]() | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
5 | Posting Date ![]() | Posting Date | Normal | Date | 4 | Posting Date | datetime |
6 | Resource No. ![]() | Resource No. | Normal | Code | 20 | Resource No_ | nvarchar(40) |
Key to join to the Resource table.Show/hide example querySELECT [Res. Journal Line].[Resource No_] ,[Resource].[No_] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Resource$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Resource] ON [Res. Journal Line].[Resource No_] = [Resource].[No_] | |||||||
7 | Resource Group No. ![]() | Resource Group No. | Normal | Code | 20 | Resource Group No_ | nvarchar(40) |
Key to join to the Resource Group table.Show/hide example querySELECT [Res. Journal Line].[Resource Group No_] ,[Resource Group].[No_] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Resource Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Resource Group] ON [Res. Journal Line].[Resource Group No_] = [Resource Group].[No_] | |||||||
8 | Description ![]() | Description | Normal | Text | 100 | Description | nvarchar(200) |
9 | Work Type Code ![]() | Work Type Code | Normal | Code | 10 | Work Type Code | nvarchar(20) |
Key to join to the Work Type table.Show/hide example querySELECT [Res. Journal Line].[Work Type Code] ,[Work Type].[Code] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Work Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Work Type] ON [Res. Journal Line].[Work Type Code] = [Work Type].[Code] | |||||||
10 | Job No. ![]() | Job No. | Normal | Code | 20 | Job No_ | nvarchar(40) |
Key to join to the Job table.Show/hide example querySELECT [Res. Journal Line].[Job No_] ,[Job].[No_] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Job$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job] ON [Res. Journal Line].[Job No_] = [Job].[No_] | |||||||
11 | Unit of Measure Code ![]() | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
12 | Quantity ![]() | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
13 | Direct Unit Cost ![]() | Direct Unit Cost | Normal | Decimal | 12 | Direct Unit Cost | decimal(38,38) |
14 | Unit Cost ![]() | Unit Cost | Normal | Decimal | 12 | Unit Cost | decimal(38,38) |
15 | Total Cost ![]() | Total Cost | Normal | Decimal | 12 | Total Cost | decimal(38,38) |
16 | Unit Price ![]() | Unit Price | Normal | Decimal | 12 | Unit Price | decimal(38,38) |
17 | Total Price ![]() | Total Price | Normal | Decimal | 12 | Total Price | decimal(38,38) |
18 | Shortcut Dimension 1 Code ![]() | Shortcut Dimension 1 Code | Normal | Code | 20 | Shortcut Dimension 1 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Res. Journal Line].[Shortcut Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Res. Journal Line].[Shortcut Dimension 1 Code] = [Dimension].[Code] | |||||||
19 | Shortcut Dimension 2 Code ![]() | Shortcut Dimension 2 Code | Normal | Code | 20 | Shortcut Dimension 2 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Res. Journal Line].[Shortcut Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Res. Journal Line].[Shortcut Dimension 2 Code] = [Dimension].[Code] | |||||||
21 | Source Code ![]() | Source Code | Normal | Code | 10 | Source Code | nvarchar(20) |
Key to join to the Source Code table.Show/hide example querySELECT [Res. Journal Line].[Source Code] ,[Source Code].[Code] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Source Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Source Code] ON [Res. Journal Line].[Source Code] = [Source Code].[Code] | |||||||
23 | Journal Batch Name ![]() | Journal Batch Name | Normal | Code | 10 | Journal Batch Name | nvarchar(20) |
24 | Reason Code ![]() ![]() | Reason Code | Normal | Code | 10 | Reason Code | nvarchar(20) |
Key to join to the Reason Code table.Show/hide example querySELECT [Res. Journal Line].[Reason Code] ,[Reason Code].[Code] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code] ON [Res. Journal Line].[Reason Code] = [Reason Code].[Code] | |||||||
25 | Recurring Method ![]() | Recurring Method | Normal | Option | 4 | Recurring Method | int |
Available options are:
| |||||||
26 | Expiration Date ![]() | Expiration Date | Normal | Date | 4 | Expiration Date | datetime |
27 | Recurring Frequency ![]() | Recurring Frequency | Normal | DateFormula | 32 | Recurring Frequency | varchar(32) |
28 | Gen. Bus. Posting Group ![]() | Gen. Bus. Posting Group | Normal | Code | 20 | Gen_ Bus_ Posting Group | nvarchar(40) |
Key to join to the Gen. Business Posting Group table.Show/hide example querySELECT [Res. Journal Line].[Gen_ Bus_ Posting Group] ,[Gen. Business Posting Group].[Code] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Gen_ Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Business Posting Group] ON [Res. Journal Line].[Gen_ Bus_ Posting Group] = [Gen. Business Posting Group].[Code] | |||||||
29 | Gen. Prod. Posting Group ![]() | Gen. Prod. Posting Group | Normal | Code | 20 | Gen_ Prod_ Posting Group | nvarchar(40) |
Key to join to the Gen. Product Posting Group table.Show/hide example querySELECT [Res. Journal Line].[Gen_ Prod_ Posting Group] ,[Gen. Product Posting Group].[Code] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group] ON [Res. Journal Line].[Gen_ Prod_ Posting Group] = [Gen. Product Posting Group].[Code] | |||||||
30 | Document Date ![]() | Document Date | Normal | Date | 4 | Document Date | datetime |
31 | External Document No. ![]() | External Document No. | Normal | Code | 35 | External Document No_ | nvarchar(70) |
32 | Posting No. Series ![]() | Posting No. Series | Normal | Code | 20 | Posting No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Res. Journal Line].[Posting No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Res. Journal Line].[Posting No_ Series] = [No. Series].[Code] | |||||||
33 | Source Type ![]() | Source Type | Normal | Option | 4 | Source Type | int |
Available options are:
| |||||||
34 | Source No. ![]() | Source No. | Normal | Code | 20 | Source No_ | nvarchar(40) |
35 | Qty. per Unit of Measure ![]() | Qty. per Unit of Measure | Normal | Decimal | 12 | Qty_ per Unit of Measure | decimal(38,38) |
90 | Order Type ![]() | Order Type | Normal | Option | 4 | Order Type | int |
Available options are:
| |||||||
91 | Order No. ![]() | Order No. | Normal | Code | 20 | Order No_ | nvarchar(40) |
92 | Order Line No. ![]() | Order Line No. | Normal | Integer | 4 | Order Line No_ | int |
480 | Dimension Set ID ![]() | Dimension Set ID | Normal | Integer | 4 | Dimension Set ID | int |
Key to join to the Dimension Set Entry table.Show/hide example querySELECT [Res. Journal Line].[Dimension Set ID] ,[Dimension Set Entry].[Dimension Set ID] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry] ON [Res. Journal Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID] | |||||||
950 | Time Sheet No. ![]() | Time Sheet No. | Normal | Code | 20 | Time Sheet No_ | nvarchar(40) |
951 | Time Sheet Line No. ![]() | Time Sheet Line No. | Normal | Integer | 4 | Time Sheet Line No_ | int |
952 | Time Sheet Date ![]() | Time Sheet Date | Normal | Date | 4 | Time Sheet Date | datetime |
959 | System-Created Entry ![]() | System-Created Entry | Normal | Boolean | 4 | ||
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 [Res. Journal Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Res_ Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Journal Line] LEFT JOIN [User] AS [User] ON [Res. Journal Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt ![]() | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy ![]() | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |