Sales Invoice Entity Aggregate

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

Table Type: Company

Table Name: Sales Invoice Entity Aggregate
Database Table Name: CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 0

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 Sales Invoice Entity Aggregate can be queried.

Show/hide an example select of all columns

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

Show/hide an example select of all columns by name

SELECT
   [timestamp]
   ,[No_]
   ,[Posted]
   ,[Document Type]
   ,[Sell-to Customer No_]
   ,[Bill-to Customer No_]
   ,[Bill-to Name]
   ,[Bill-to Address]
   ,[Bill-to Address 2]
   ,[Bill-to City]
   ,[Bill-to Contact]
   ,[Your Reference]
   ,[Ship-to Code]
   ,[Ship-to Name]
   ,[Ship-to Address]
   ,[Ship-to Address 2]
   ,[Ship-to City]
   ,[Ship-to Contact]
   ,[Posting Date]
   ,[Payment Terms Code]
   ,[Due Date]
   ,[Shipment Method Code]
   ,[Shortcut Dimension 1 Code]
   ,[Shortcut Dimension 2 Code]
   ,[Customer Posting Group]
   ,[Currency Code]
   ,[Prices Including VAT]
   ,[Salesperson Code]
   ,[Order No_]
   ,[Amount]
   ,[Amount Including VAT]
   ,[VAT Registration No_]
   ,[Sell-to Customer Name]
   ,[Sell-to Address]
   ,[Sell-to Address 2]
   ,[Sell-to City]
   ,[Sell-to Contact]
   ,[Bill-to Post Code]
   ,[Bill-to County]
   ,[Bill-to Country_Region Code]
   ,[Sell-to Post Code]
   ,[Sell-to County]
   ,[Sell-to Country_Region Code]
   ,[Ship-to Post Code]
   ,[Ship-to County]
   ,[Ship-to Country_Region Code]
   ,[Document Date]
   ,[External Document No_]
   ,[Tax Area Code]
   ,[Tax Liable]
   ,[VAT Bus_ Posting Group]
   ,[Invoice Discount Calculation]
   ,[Invoice Discount Value]
   ,[Last Email Sent Status]
   ,[IsTest]
   ,[Sell-to Phone No_]
   ,[Sell-to E-Mail]
   ,[Cust_ Ledger Entry No_]
   ,[Invoice Discount Amount]
   ,[Sell-to Contact No_]
   ,[Id]
   ,[Total Tax Amount]
   ,[Status]
   ,[Subtotal Amount]
   ,[Discount Applied Before Tax]
   ,[Last Modified Date Time]
   ,[Customer Id]
   ,[Order Id]
   ,[Contact Graph Id]
   ,[Currency Id]
   ,[Payment Terms Id]
   ,[Shipment Method Id]
   ,[Tax Area ID]
   ,[Bill-to Customer Id]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Invoice Entity Aggregate]
LEFT JOIN
   [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
      ON
         [Sales Invoice Entity Aggregate].[Sell-to Customer No_] = [Customer].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
      ON
         [Sales Invoice Entity Aggregate].[Bill-to Customer No_] = [Customer].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
      ON
         [Sales Invoice Entity Aggregate].[Payment Terms Code] = [Payment Terms].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Shipment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Shipment Method]
      ON
         [Sales Invoice Entity Aggregate].[Shipment Method Code] = [Shipment Method].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Customer Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Posting Group]
      ON
         [Sales Invoice Entity Aggregate].[Customer Posting Group] = [Customer Posting Group].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
      ON
         [Sales Invoice Entity Aggregate].[Currency Code] = [Currency].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson_Purchaser]
      ON
         [Sales Invoice Entity Aggregate].[Salesperson Code] = [Salesperson_Purchaser].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Tax Area$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Area]
      ON
         [Sales Invoice Entity Aggregate].[Tax Area Code] = [Tax Area].[Code]

Show/hide columns in Sales Invoice Entity Aggregate table

Column IDColumn NameData Type
1timestamp Searchtimestamp
2No_ Primary Key Searchnvarchar(40)
3Posted Primary Key Searchtinyint
4Document Type Searchint
5Sell-to Customer No_ Searchnvarchar(40)
Key to join to the Customer table.

Show/hide example query

SELECT
       [Sales Invoice Entity Aggregate].[Sell-to Customer No_]
       ,[Customer].[No_]
FROM
       [CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Invoice Entity Aggregate]
LEFT JOIN
       [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
              ON
                     [Sales Invoice Entity Aggregate].[Sell-to Customer No_] = [Customer].[No_]
6Bill-to Customer No_ Searchnvarchar(40)
Key to join to the Customer table.

Show/hide example query

SELECT
       [Sales Invoice Entity Aggregate].[Bill-to Customer No_]
       ,[Customer].[No_]
FROM
       [CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Invoice Entity Aggregate]
LEFT JOIN
       [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
              ON
                     [Sales Invoice Entity Aggregate].[Bill-to Customer No_] = [Customer].[No_]
7Bill-to Name Searchnvarchar(200)
8Bill-to Address Searchnvarchar(200)
9Bill-to Address 2 Searchnvarchar(100)
10Bill-to City Searchnvarchar(60)
11Bill-to Contact Searchnvarchar(200)
12Your Reference Searchnvarchar(70)
13Ship-to Code Searchnvarchar(20)
14Ship-to Name Searchnvarchar(200)
15Ship-to Address Searchnvarchar(200)
16Ship-to Address 2 Searchnvarchar(100)
17Ship-to City Searchnvarchar(60)
18Ship-to Contact Searchnvarchar(200)
19Posting Date Searchdatetime
20Payment Terms Code Searchnvarchar(20)
Key to join to the Payment Terms table.

Show/hide example query

SELECT
       [Sales Invoice Entity Aggregate].[Payment Terms Code]
       ,[Payment Terms].[Code]
FROM
       [CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Invoice Entity Aggregate]
LEFT JOIN
       [CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
              ON
                     [Sales Invoice Entity Aggregate].[Payment Terms Code] = [Payment Terms].[Code]
21Due Date Searchdatetime
22Shipment Method Code Searchnvarchar(20)
Key to join to the Shipment Method table.

Show/hide example query

SELECT
       [Sales Invoice Entity Aggregate].[Shipment Method Code]
       ,[Shipment Method].[Code]
FROM
       [CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Invoice Entity Aggregate]
LEFT JOIN
       [CRONUS UK Ltd_$Shipment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Shipment Method]
              ON
                     [Sales Invoice Entity Aggregate].[Shipment Method Code] = [Shipment Method].[Code]
23Shortcut Dimension 1 Code Searchnvarchar(40)
24Shortcut Dimension 2 Code Searchnvarchar(40)
25Customer Posting Group Searchnvarchar(40)
Key to join to the Customer Posting Group table.

Show/hide example query

SELECT
       [Sales Invoice Entity Aggregate].[Customer Posting Group]
       ,[Customer Posting Group].[Code]
FROM
       [CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Invoice Entity Aggregate]
LEFT JOIN
       [CRONUS UK Ltd_$Customer Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Posting Group]
              ON
                     [Sales Invoice Entity Aggregate].[Customer Posting Group] = [Customer Posting Group].[Code]
26Currency Code Searchnvarchar(20)
Key to join to the Currency table.

Show/hide example query

SELECT
       [Sales Invoice Entity Aggregate].[Currency Code]
       ,[Currency].[Code]
FROM
       [CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Invoice Entity Aggregate]
LEFT JOIN
       [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
              ON
                     [Sales Invoice Entity Aggregate].[Currency Code] = [Currency].[Code]
27Prices Including VAT Searchtinyint
28Salesperson Code Searchnvarchar(40)
Key to join to the Salesperson_Purchaser table.

Show/hide example query

SELECT
       [Sales Invoice Entity Aggregate].[Salesperson Code]
       ,[Salesperson_Purchaser].[No_]
FROM
       [CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Invoice Entity Aggregate]
LEFT JOIN
       [CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson_Purchaser]
              ON
                     [Sales Invoice Entity Aggregate].[Salesperson Code] = [Salesperson_Purchaser].[No_]
29Order No_ Searchnvarchar(40)
30Amount Searchdecimal(38,38)
31Amount Including VAT Searchdecimal(38,38)
32VAT Registration No_ Searchnvarchar(40)
33Sell-to Customer Name Searchnvarchar(200)
34Sell-to Address Searchnvarchar(200)
35Sell-to Address 2 Searchnvarchar(100)
36Sell-to City Searchnvarchar(60)
37Sell-to Contact Searchnvarchar(200)
38Bill-to Post Code Searchnvarchar(40)
39Bill-to County Searchnvarchar(60)
40Bill-to Country_Region Code Searchnvarchar(20)
41Sell-to Post Code Searchnvarchar(40)
42Sell-to County Searchnvarchar(60)
43Sell-to Country_Region Code Searchnvarchar(20)
44Ship-to Post Code Searchnvarchar(40)
45Ship-to County Searchnvarchar(60)
46Ship-to Country_Region Code Searchnvarchar(20)
47Document Date Searchdatetime
48External Document No_ Searchnvarchar(70)
49Tax Area Code Searchnvarchar(40)
Key to join to the Tax Area table.

Show/hide example query

SELECT
       [Sales Invoice Entity Aggregate].[Tax Area Code]
       ,[Tax Area].[Code]
FROM
       [CRONUS UK Ltd_$Sales Invoice Entity Aggregate$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Invoice Entity Aggregate]
LEFT JOIN
       [CRONUS UK Ltd_$Tax Area$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Area]
              ON
                     [Sales Invoice Entity Aggregate].[Tax Area Code] = [Tax Area].[Code]
50Tax Liable Searchtinyint
51VAT Bus_ Posting Group Searchnvarchar(40)
52Invoice Discount Calculation Searchint
53Invoice Discount Value Searchdecimal(38,38)
54Last Email Sent Status Searchint
55IsTest Searchtinyint
56Sell-to Phone No_ Searchnvarchar(60)
57Sell-to E-Mail Searchnvarchar(160)
58Cust_ Ledger Entry No_ Searchint
59Invoice Discount Amount Searchdecimal(38,38)
60Sell-to Contact No_ Searchnvarchar(40)
61Id Searchuniqueidentifier
62Total Tax Amount Searchdecimal(38,38)
63Status Searchint
64Subtotal Amount Searchdecimal(38,38)
65Discount Applied Before Tax Searchtinyint
66Last Modified Date Time Searchdatetime
67Customer Id Searchuniqueidentifier
68Order Id Searchuniqueidentifier
69Contact Graph Id Searchnvarchar(500)
70Currency Id Searchuniqueidentifier
71Payment Terms Id Searchuniqueidentifier
72Shipment Method Id Searchuniqueidentifier
73Tax Area ID Searchuniqueidentifier
74Bill-to Customer Id Searchuniqueidentifier
75$systemId Searchuniqueidentifier
76$systemCreatedAt Searchdatetime
77$systemCreatedBy Searchuniqueidentifier
78$systemModifiedAt Searchdatetime
79$systemModifiedBy Searchuniqueidentifier

Show/hide tables related from Sales Invoice Entity Aggregate table

Leave a Reply

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