Average Cost Calc. Overview

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

Table Type: Company

Table Name: Average Cost Calc. Overview
Database Table Name: CRONUS UK Ltd_$Average Cost Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 5847

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 Average Cost Calc. Overview can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Average Cost Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Entry No_]
   ,[Type]
   ,[Valuation Date]
   ,[Item No_]
   ,[Location Code]
   ,[Variant Code]
   ,[Cost is Adjusted]
   ,[Attached to Entry No_]
   ,[Attached to Valuation Date]
   ,[Level]
   ,[Item Ledger Entry No_]
   ,[Posting Date]
   ,[Entry Type]
   ,[Document Type]
   ,[Document No_]
   ,[Document Line No_]
   ,[Description]
   ,[Quantity]
   ,[Applied Quantity]
   ,[Cost Amount (Expected)]
   ,[Cost Amount (Actual)]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Average Cost Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Average Cost Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Average Cost Calc. Overview]
LEFT JOIN
   [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
      ON
         [Average Cost Calc. Overview].[Location Code] = [Location].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
      ON
         [Average Cost Calc. Overview].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
      ON
         [Average Cost Calc. Overview].[Document Type] = [Sales Header Archive].[Document Type]
      AND
         [Average Cost Calc. Overview].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
      ON
         [Average Cost Calc. Overview].[Document Type] = [Sales Header].[Document Type]
      AND
         [Average Cost Calc. Overview].[Document No_] = [Sales Header].[No_]
LEFT JOIN
   [User] AS [User]
      ON
         [Average Cost Calc. Overview].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Average Cost Calc. Overview].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Average Cost Calc. Overview table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Entry No. SearchEntry No.NormalInteger4Entry No_int
2Type Primary Key SearchTypeNormalOption4Typeint
Available options are:
  • “Closing Entry”
  • “Increase”
  • “Applied Increase”
  • “Applied Decrease”
  • “Decrease”
  • “Revaluation”
3Valuation Date SearchValuation DateNormalDate4Valuation Datedatetime
4Item No. SearchItem No.NormalCode20Item No_nvarchar(40)
Key to join to the Item table.

Show/hide example query

SELECT
	       [Average Cost Calc. Overview].[Item No_]
	       ,[Item].[No_]
	FROM
	       [CRONUS UK Ltd_$Average Cost Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Average Cost Calc. Overview]
	LEFT JOIN
	       [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item]
	              ON
	                     [Average Cost Calc. Overview].[Item No_] = [Item].[No_]
5Location Code SearchLocation CodeNormalCode10Location Codenvarchar(20)
Key to join to the Location table.

Show/hide example query

SELECT
	       [Average Cost Calc. Overview].[Location Code]
	       ,[Location].[Code]
	FROM
	       [CRONUS UK Ltd_$Average Cost Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Average Cost Calc. Overview]
	LEFT JOIN
	       [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
	              ON
	                     [Average Cost Calc. Overview].[Location Code] = [Location].[Code]
6Variant Code SearchVariant CodeNormalCode10Variant Codenvarchar(20)
Key to join to the Item Variant table.

Show/hide example query

SELECT
	       [Average Cost Calc. Overview].[Variant Code]
	       ,[Item Variant].[Code]
	FROM
	       [CRONUS UK Ltd_$Average Cost Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Average Cost Calc. Overview]
	LEFT JOIN
	       [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
	              ON
	                     [Average Cost Calc. Overview].[Variant Code] = [Item Variant].[Code]
7Cost is Adjusted SearchCost is AdjustedNormalBoolean4Cost is Adjustedtinyint
11Attached to Entry No. SearchAttached to Entry No.NormalInteger4Attached to Entry No_int
Key to join to the Item Ledger Entry table.

Show/hide example query

SELECT
	       [Average Cost Calc. Overview].[Attached to Entry No_]
	       ,[Item Ledger Entry].[Entry No_]
	FROM
	       [CRONUS UK Ltd_$Average Cost Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Average Cost Calc. Overview]
	LEFT JOIN
	       [CRONUS UK Ltd_$Item Ledger Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Ledger Entry]
	              ON
	                     [Average Cost Calc. Overview].[Attached to Entry No_] = [Item Ledger Entry].[Entry No_]
12Attached to Valuation Date SearchAttached to Valuation DateNormalDate4Attached to Valuation Datedatetime
13Level SearchLevelNormalInteger4Levelint
21Item Ledger Entry No. SearchItem Ledger Entry No.NormalInteger4Item Ledger Entry No_int
Key to join to the Item Ledger Entry table.

Show/hide example query

SELECT
	       [Average Cost Calc. Overview].[Item Ledger Entry No_]
	       ,[Item Ledger Entry].[Entry No_]
	FROM
	       [CRONUS UK Ltd_$Average Cost Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Average Cost Calc. Overview]
	LEFT JOIN
	       [CRONUS UK Ltd_$Item Ledger Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Ledger Entry]
	              ON
	                     [Average Cost Calc. Overview].[Item Ledger Entry No_] = [Item Ledger Entry].[Entry No_]
22Posting Date SearchPosting DateNormalDate4Posting Datedatetime
23Entry Type SearchEntry TypeNormalOption4Entry Typeint
Available options are:
  • “Purchase”
  • “Sale”
  • “Positive Adjmt.”
  • “Negative Adjmt.”
  • “Transfer”
  • “Consumption”
  • “Output”
  • ” “
  • “Assembly Consumption”
  • “Assembly Output”
24Document Type SearchDocument TypeNormalOption4Document Typeint
Available options are:
  • ” “
  • “Sales Shipment”
  • “Sales Invoice”
  • “Sales Return Receipt”
  • “Sales Credit Memo”
  • “Purchase Receipt”
  • “Purchase Invoice”
  • “Purchase Return Shipment”
  • “Purchase Credit Memo”
  • “Transfer Shipment”
  • “Transfer Receipt”
  • “Service Shipment”
  • “Service Invoice”
  • “Service Credit Memo”
25Document No. SearchDocument No.NormalCode20Document No_nvarchar(40)
26Document Line No. SearchDocument Line No.NormalInteger4Document Line No_int
27Description SearchDescriptionNormalText100Descriptionnvarchar(200)
31Quantity SearchQuantityNormalDecimal12Quantitydecimal(38,38)
32Applied Quantity SearchApplied QuantityNormalInteger4Applied Quantityint
33Cost Amount (Expected) SearchCost Amount (Expected)NormalDecimal12Cost Amount (Expected)decimal(38,38)
34Cost Amount (Actual) SearchCost Amount (Actual)NormalDecimal12Cost Amount (Actual)decimal(38,38)
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
	       [Average Cost Calc. Overview].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Average Cost Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Average Cost Calc. Overview]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Average Cost Calc. Overview].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Show/hide tables related from Average Cost Calc. Overview table

Leave a Reply

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