Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5635
Table Type: Company
Table Name: Insurance Journal Line
Database Table Name: CRONUS UK Ltd_$Insurance 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 Insurance Journal Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Journal Template Name]
,[Journal Batch Name]
,[Line No_]
,[Insurance No_]
,[FA No_]
,[FA Description]
,[Posting Date]
,[Document Type]
,[Document Date]
,[Document No_]
,[External Document No_]
,[Amount]
,[Description]
,[Shortcut Dimension 1 Code]
,[Shortcut Dimension 2 Code]
,[Reason Code]
,[Source Code]
,[Index Entry]
,[Posting No_ Series]
,[Dimension Set ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Insurance 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_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance Journal Line]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Insurance Journal Line].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Insurance Journal Line].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Insurance Journal Line].[Document Type] = [Sales Header].[Document Type]
AND
[Insurance Journal Line].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Insurance Journal Line].[Shortcut Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Insurance Journal Line].[Shortcut Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code]
ON
[Insurance Journal Line].[Reason Code] = [Reason Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Source Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Source Code]
ON
[Insurance Journal Line].[Source Code] = [Source Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Insurance Journal Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
[User] AS [User]
ON
[Insurance Journal Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Insurance Journal Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Insurance 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 | Journal Batch Name | Journal Batch Name | Normal | Code | 10 | Journal Batch Name | nvarchar(20) |
3 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
4 | Insurance No. | Insurance No. | Normal | Code | 20 | Insurance No_ | nvarchar(40) |
Key to join to the Insurance table.Show/hide example querySELECT [Insurance Journal Line].[Insurance No_] ,[Insurance].[No_] FROM [CRONUS UK Ltd_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance Journal Line] LEFT JOIN [CRONUS UK Ltd_$Insurance$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance] ON [Insurance Journal Line].[Insurance No_] = [Insurance].[No_] | |||||||
6 | FA No. | FA No. | Normal | Code | 20 | FA No_ | nvarchar(40) |
Key to join to the Fixed Asset table.Show/hide example querySELECT [Insurance Journal Line].[FA No_] ,[Fixed Asset].[No_] FROM [CRONUS UK Ltd_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance Journal Line] LEFT JOIN [CRONUS UK Ltd_$Fixed Asset$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Fixed Asset] ON [Insurance Journal Line].[FA No_] = [Fixed Asset].[No_] | |||||||
7 | FA Description | FA Description | Normal | Text | 100 | FA Description | nvarchar(200) |
8 | Posting Date | Posting Date | Normal | Date | 4 | Posting Date | datetime |
9 | Document Type | Document Type | Normal | Option | 4 | Document Type | int |
Available options are:
| |||||||
10 | Document Date | Document Date | Normal | Date | 4 | Document Date | datetime |
11 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
12 | External Document No. | External Document No. | Normal | Code | 35 | External Document No_ | nvarchar(70) |
13 | Amount | Amount | Normal | Decimal | 12 | Amount | decimal(38,38) |
14 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
15 | 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 [Insurance Journal Line].[Shortcut Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance Journal Line] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Insurance Journal Line].[Shortcut Dimension 1 Code] = [Dimension].[Code] | |||||||
16 | 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 [Insurance Journal Line].[Shortcut Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance Journal Line] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Insurance Journal Line].[Shortcut Dimension 2 Code] = [Dimension].[Code] | |||||||
17 | Reason Code | Reason Code | Normal | Code | 10 | Reason Code | nvarchar(20) |
Key to join to the Reason Code table.Show/hide example querySELECT [Insurance Journal Line].[Reason Code] ,[Reason Code].[Code] FROM [CRONUS UK Ltd_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance Journal Line] LEFT JOIN [CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code] ON [Insurance Journal Line].[Reason Code] = [Reason Code].[Code] | |||||||
18 | Source Code | Source Code | Normal | Code | 10 | Source Code | nvarchar(20) |
Key to join to the Source Code table.Show/hide example querySELECT [Insurance Journal Line].[Source Code] ,[Source Code].[Code] FROM [CRONUS UK Ltd_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance Journal Line] LEFT JOIN [CRONUS UK Ltd_$Source Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Source Code] ON [Insurance Journal Line].[Source Code] = [Source Code].[Code] | |||||||
20 | Index Entry | Index Entry | Normal | Boolean | 4 | Index Entry | tinyint |
21 | 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 [Insurance Journal Line].[Posting No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance Journal Line] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Insurance Journal Line].[Posting No_ Series] = [No. Series].[Code] | |||||||
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 [Insurance Journal Line].[Dimension Set ID] ,[Dimension Set Entry].[Dimension Set ID] FROM [CRONUS UK Ltd_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance Journal Line] LEFT JOIN [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry] ON [Insurance Journal Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID] | |||||||
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 [Insurance Journal Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Insurance Journal Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance Journal Line] LEFT JOIN [User] AS [User] ON [Insurance 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 |