Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/266
Table Type: Company
Table Name: Customer Amount
Database Table Name: CRONUS UK Ltd_$Customer Amount$437dbf0e-84ff-417a-965d-ed2bb9650972
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 Customer Amount can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Customer Amount$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[timestamp]
,[Amount (LCY)]
,[Amount 2 (LCY)]
,[Customer No_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Customer Amount$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Customer Amount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Amount]
LEFT JOIN
[CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
ON
[Customer Amount].[Customer No_] = [Customer].[No_]
Show/hide columns in Customer Amount table
Column ID | Column Name | Data Type | ||||
---|---|---|---|---|---|---|
1 | timestamp ![]() | timestamp | ||||
2 | Amount (LCY) ![]() ![]() | decimal(38,38) | ||||
3 | Amount 2 (LCY) ![]() ![]() | decimal(38,38) | ||||
4 | Customer No_ ![]() ![]() | nvarchar(40) | ||||
Key to join to the Customer table.Show/hide example querySELECT
[Customer Amount].[Customer No_]
,[Customer].[No_]
FROM
[CRONUS UK Ltd_$Customer Amount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Amount]
LEFT JOIN
[CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
ON
[Customer Amount].[Customer No_] = [Customer].[No_] | ||||||
5 | $systemId ![]() | uniqueidentifier | ||||
6 | $systemCreatedAt ![]() | datetime | ||||
7 | $systemCreatedBy ![]() | uniqueidentifier | ||||
8 | $systemModifiedAt ![]() | datetime | ||||
9 | $systemModifiedBy ![]() | uniqueidentifier |