G/L Account Where-Used

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

Table Type: Company

Table Name: G/L Account Where-Used
Database Table Name: CRONUS UK Ltd_$G_L Account Where-Used$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 180

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 G/L Account Where-Used can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$G_L Account Where-Used$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Entry No_]
   ,[Table ID]
   ,[Table Name]
   ,[Field Name]
   ,[Line]
   ,[G_L Account No_]
   ,[G_L Account Name]
   ,[Key 1]
   ,[Key 2]
   ,[Key 3]
   ,[Key 4]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$G_L Account Where-Used$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$G_L Account Where-Used$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account Where-Used]
LEFT JOIN
   [CRONUS UK Ltd_$Data Exch_ Mapping$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exch. Mapping]
      ON
         [G/L Account Where-Used].[Table ID] = [Data Exch. Mapping].[Table ID]
LEFT JOIN
   [User] AS [User]
      ON
         [G/L Account Where-Used].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [G/L Account Where-Used].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in G/L Account Where-Used table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Entry No. Primary Key SearchEntry No.NormalInteger4Entry No_int
2Table ID SearchTable IDNormalInteger4Table IDint
Key to join to the Data Exch. Mapping table.

Show/hide example query

SELECT
       [G/L Account Where-Used].[Table ID]
       ,[Data Exch. Mapping].[Table ID]
FROM
       [CRONUS UK Ltd_$G_L Account Where-Used$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account Where-Used]
LEFT JOIN
       [CRONUS UK Ltd_$Data Exch_ Mapping$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exch. Mapping]
              ON
                     [G/L Account Where-Used].[Table ID] = [Data Exch. Mapping].[Table ID]
3Table Name SearchTable NameNormalText150Table Namenvarchar(300)
5Field Name SearchField NameNormalText150Field Namenvarchar(300)
6Line SearchLineNormalText250Linenvarchar(500)
7G/L Account No. SearchG/L Account No.NormalCode20G_L Account No_nvarchar(40)
Key to join to the G/L Account table.

Show/hide example query

SELECT
       [G/L Account Where-Used].[G_L Account No_]
       ,[G/L Account].[No_]
FROM
       [CRONUS UK Ltd_$G_L Account Where-Used$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account Where-Used]
LEFT JOIN
       [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
              ON
                     [G/L Account Where-Used].[G_L Account No_] = [G/L Account].[No_]
8G/L Account Name SearchG/L Account NameNormalText100G_L Account Namenvarchar(200)
9Key 1 SearchKey 1NormalText50Key 1nvarchar(100)
10Key 2 SearchKey 2NormalText50Key 2nvarchar(100)
11Key 3 SearchKey 3NormalText50Key 3nvarchar(100)
12Key 4 SearchKey 4NormalText50Key 4nvarchar(100)
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
       [G/L Account Where-Used].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$G_L Account Where-Used$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account Where-Used]
LEFT JOIN
       [User] AS [User]
              ON
                     [G/L Account Where-Used].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [G/L Account Where-Used].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$G_L Account Where-Used$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account Where-Used]
LEFT JOIN
       [User] AS [User]
              ON
                     [G/L Account Where-Used].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

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