ATO Sales Buffer

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

Table Type: Company

Table Name: ATO Sales Buffer
Database Table Name: CRONUS UK Ltd_$ATO Sales Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 915

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 ATO Sales Buffer can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$ATO Sales Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Type]
   ,[Order No_]
   ,[Item No_]
   ,[Parent Item No_]
   ,[Quantity]
   ,[Sales Cost]
   ,[Sales Amount]
   ,[Profit _]
   ,[Parent Description]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$ATO Sales Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$ATO Sales Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [ATO Sales Buffer]
LEFT JOIN
   [User] AS [User]
      ON
         [ATO Sales Buffer].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [ATO Sales Buffer].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in ATO Sales Buffer table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Type Primary Key SearchTypeNormalOption4Typeint
Available options are:
  • “”
  • “Sale”
  • “Total Sale”
  • “Assembly”
  • “Total Assembly”
2Order No. Primary Key SearchOrder No.NormalCode20Order No_nvarchar(40)
3Item No. Primary Key SearchItem No.NormalCode20Item No_nvarchar(40)
Key to join to the Item table.

Show/hide example query

SELECT
       [ATO Sales Buffer].[Item No_]
       ,[Item].[No_]
FROM
       [CRONUS UK Ltd_$ATO Sales Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [ATO Sales Buffer]
LEFT JOIN
       [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item]
              ON
                     [ATO Sales Buffer].[Item No_] = [Item].[No_]
4Parent Item No. Primary Key SearchParent Item No.NormalCode20Parent Item No_nvarchar(40)
5Quantity SearchQuantityNormalDecimal12Quantitydecimal(38,38)
6Sales Cost SearchSales CostNormalDecimal12Sales Costdecimal(38,38)
7Sales Amount SearchSales AmountNormalDecimal12Sales Amountdecimal(38,38)
8Profit % SearchProfit %NormalDecimal12Profit _decimal(38,38)
9Parent Description SearchParent DescriptionNormalText100Parent Descriptionnvarchar(200)
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
       [ATO Sales Buffer].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$ATO Sales Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [ATO Sales Buffer]
LEFT JOIN
       [User] AS [User]
              ON
                     [ATO Sales Buffer].[$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
       [ATO Sales Buffer].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$ATO Sales Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [ATO Sales Buffer]
LEFT JOIN
       [User] AS [User]
              ON
                     [ATO Sales Buffer].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

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