Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/275
Table Type: Company
Table Name: Bank Account Statement
Database Table Name: CRONUS UK Ltd_$Bank Account Statement$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 Bank Account Statement can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Bank Account Statement$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Bank Account No_]
,[Statement No_]
,[Statement Ending Balance]
,[Statement Date]
,[Balance Last Statement]
,[G_L Balance at Posting Date]
,[Outstd_ Payments at Posting]
,[Outstd_ Transact_ at Posting]
,[Total Pos_ Diff_ at Posting]
,[Total Neg_ Diff_ at Posting]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Bank Account Statement$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Bank Account Statement$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bank Account Statement]
LEFT JOIN
[User] AS [User]
ON
[Bank Account Statement].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Bank Account Statement].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Bank Account Statement table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Bank Account No. | Bank Account No. | Normal | Code | 20 | Bank Account No_ | nvarchar(40) |
Key to join to the Bank Account table.Show/hide example querySELECT [Bank Account Statement].[Bank Account No_] ,[Bank Account].[No_] FROM [CRONUS UK Ltd_$Bank Account Statement$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bank Account Statement] LEFT JOIN [CRONUS UK Ltd_$Bank Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bank Account] ON [Bank Account Statement].[Bank Account No_] = [Bank Account].[No_] | |||||||
2 | Statement No. | Statement No. | Normal | Code | 20 | Statement No_ | nvarchar(40) |
3 | Statement Ending Balance | Statement Ending Balance | Normal | Decimal | 12 | Statement Ending Balance | decimal(38,38) |
4 | Statement Date | Statement Date | Normal | Date | 4 | Statement Date | datetime |
5 | Balance Last Statement | Balance Last Statement | Normal | Decimal | 12 | Balance Last Statement | decimal(38,38) |
50 | Bank Account Name | Bank Account Name | FlowField | Text | 100 | ||
100 | G/L Balance at Posting Date | G/L Balance at Posting Date | Normal | Decimal | 12 | G_L Balance at Posting Date | decimal(38,38) |
101 | Outstd. Payments at Posting | Outstanding Payments at Posting Date | Normal | Decimal | 12 | Outstd_ Payments at Posting | decimal(38,38) |
102 | Outstd. Transact. at Posting | Outstading Bank Transactions at Posting Date | Normal | Decimal | 12 | Outstd_ Transact_ at Posting | decimal(38,38) |
103 | Total Pos. Diff. at Posting | Total Positive Difference at Posting Date | Normal | Decimal | 12 | Total Pos_ Diff_ at Posting | decimal(38,38) |
104 | Total Neg. Diff. at Posting | Total Negative Difference at Posting Date | Normal | Decimal | 12 | Total Neg_ Diff_ at Posting | decimal(38,38) |
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [Bank Account Statement].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Bank Account Statement$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bank Account Statement] LEFT JOIN [User] AS [User] ON [Bank Account Statement].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |