Statistical Acc. Journal Line

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2631

Table Type: Company

Table Name: Statistical Acc. Journal Line
Database Table Name: CRONUS UK Ltd_$Statistical Acc_ Journal Line$ea130081-c669-460f-a5f4-5dde14f03131

Table Number: 2631

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 Statistical Acc. Journal Line can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Statistical Acc_ Journal Line$ea130081-c669-460f-a5f4-5dde14f03131]

Show/hide an example select of all columns by name

SELECT
   [Journal Template Name]
   ,[Journal Batch Name]
   ,[Line No_]
   ,[Document No_]
   ,[Statistical Account No_]
   ,[Posting Date]
   ,[Description]
   ,[Amount]
   ,[Shortcut Dimension 1 Code]
   ,[Shortcut Dimension 2 Code]
   ,[Dimension Set ID]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Statistical Acc_ Journal Line$ea130081-c669-460f-a5f4-5dde14f03131]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [CRONUS UK Ltd_$Statistical Acc_ Journal Line$ea130081-c669-460f-a5f4-5dde14f03131] AS [Statistical Acc. Journal Line]
LEFT JOIN
   [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
      ON
         [Statistical Acc. Journal Line].[Shortcut Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
      ON
         [Statistical Acc. Journal Line].[Shortcut Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
      ON
         [Statistical Acc. Journal Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Statistical Acc. Journal Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Statistical Acc. Journal Line].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Statistical Acc. Journal Line table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Journal Template Name SearchJournal Template NameNormalCode10Journal Template Namenvarchar(20)
2Journal Batch Name Primary Key SearchJournal batch nameNormalCode10Journal Batch Namenvarchar(20)
3Line No. Primary Key SearchLine No.NormalInteger4Line No_int
7Document No. Primary Key SearchDocument No.NormalCode20Document No_nvarchar(40)
10Statistical Account No. SearchStatistical Account No.NormalCode20Statistical Account No_nvarchar(40)
Key to join to the Statistical Account table.

Show/hide example query

SELECT
	       [Statistical Acc. Journal Line].[Statistical Account No_]
	       ,[Statistical Account].[No_]
	FROM
	       [CRONUS UK Ltd_$Statistical Acc_ Journal Line$ea130081-c669-460f-a5f4-5dde14f03131] AS [Statistical Acc. Journal Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Statistical Account$ea130081-c669-460f-a5f4-5dde14f03131] AS [Statistical Account]
	              ON
	                     [Statistical Acc. Journal Line].[Statistical Account No_] = [Statistical Account].[No_]
11Posting Date SearchPosting DateNormalDate4Posting Datedatetime
12Description SearchDescriptionNormalText100Descriptionnvarchar(200)
13Amount SearchAmountNormalDecimal12Amountdecimal(38,38)
14Amount Change SearchAllocated Amt. ($)FlowFieldDecimal12
24Shortcut Dimension 1 Code SearchShortcut Dimension 1 CodeNormalCode20Shortcut Dimension 1 Codenvarchar(40)
Key to join to the Dimension table.

Show/hide example query

SELECT
	       [Statistical Acc. Journal Line].[Shortcut Dimension 1 Code]
	       ,[Dimension].[Code]
	FROM
	       [CRONUS UK Ltd_$Statistical Acc_ Journal Line$ea130081-c669-460f-a5f4-5dde14f03131] AS [Statistical Acc. Journal Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
	              ON
	                     [Statistical Acc. Journal Line].[Shortcut Dimension 1 Code] = [Dimension].[Code]
25Shortcut Dimension 2 Code SearchShortcut Dimension 2 CodeNormalCode20Shortcut Dimension 2 Codenvarchar(40)
Key to join to the Dimension table.

Show/hide example query

SELECT
	       [Statistical Acc. Journal Line].[Shortcut Dimension 2 Code]
	       ,[Dimension].[Code]
	FROM
	       [CRONUS UK Ltd_$Statistical Acc_ Journal Line$ea130081-c669-460f-a5f4-5dde14f03131] AS [Statistical Acc. Journal Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
	              ON
	                     [Statistical Acc. Journal Line].[Shortcut Dimension 2 Code] = [Dimension].[Code]
50Statistical Account Name SearchStatistical Account NameFlowFieldText100
480Dimension Set ID SearchDimension Set IDNormalInteger4Dimension Set IDint
Key to join to the Dimension Set Entry table.

Show/hide example query

SELECT
	       [Statistical Acc. Journal Line].[Dimension Set ID]
	       ,[Dimension Set Entry].[Dimension Set ID]
	FROM
	       [CRONUS UK Ltd_$Statistical Acc_ Journal Line$ea130081-c669-460f-a5f4-5dde14f03131] AS [Statistical Acc. Journal Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
	              ON
	                     [Statistical Acc. Journal Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [Statistical Acc. Journal Line].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Statistical Acc_ Journal Line$ea130081-c669-460f-a5f4-5dde14f03131] AS [Statistical Acc. Journal Line]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Statistical Acc. Journal Line].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

Your email address will not be published. Required fields are marked *