Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/422
Table Type: Company
Table Name: IC Bank Account
Database Table Name: CRONUS UK Ltd_$IC Bank Account$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 IC Bank Account can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$IC Bank Account$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[IC Partner Code]
,[Name]
,[Bank Account No_]
,[Blocked]
,[Currency Code]
,[IBAN]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$IC Bank Account$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$IC Bank Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Bank Account]
LEFT JOIN
[CRONUS UK Ltd_$IC Partner$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Partner]
ON
[IC Bank Account].[IC Partner Code] = [IC Partner].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
ON
[IC Bank Account].[Currency Code] = [Currency].[Code]
LEFT JOIN
[User] AS [User]
ON
[IC Bank Account].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[IC Bank Account].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in IC Bank Account table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
2 | IC Partner Code | Partner Code | Normal | Code | 20 | IC Partner Code | nvarchar(40) |
Key to join to the IC Partner table.Show/hide example querySELECT [IC Bank Account].[IC Partner Code] ,[IC Partner].[Code] FROM [CRONUS UK Ltd_$IC Bank Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Bank Account] LEFT JOIN [CRONUS UK Ltd_$IC Partner$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Partner] ON [IC Bank Account].[IC Partner Code] = [IC Partner].[Code] | |||||||
3 | Name | Name | Normal | Text | 100 | Name | nvarchar(200) |
4 | Bank Account No. | Bank Account No. | Normal | Text | 30 | Bank Account No_ | nvarchar(60) |
Key to join to the Bank Account table.Show/hide example querySELECT [IC Bank Account].[Bank Account No_] ,[Bank Account].[No_] FROM [CRONUS UK Ltd_$IC Bank Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Bank Account] LEFT JOIN [CRONUS UK Ltd_$Bank Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bank Account] ON [IC Bank Account].[Bank Account No_] = [Bank Account].[No_] | |||||||
5 | Blocked | Blocked | Normal | Boolean | 4 | Blocked | tinyint |
6 | Currency Code | Currency Code | Normal | Code | 10 | Currency Code | nvarchar(20) |
Key to join to the Currency table.Show/hide example querySELECT [IC Bank Account].[Currency Code] ,[Currency].[Code] FROM [CRONUS UK Ltd_$IC Bank Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Bank Account] LEFT JOIN [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency] ON [IC Bank Account].[Currency Code] = [Currency].[Code] | |||||||
7 | IBAN | IBAN | Normal | Code | 50 | IBAN | nvarchar(100) |
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 [IC Bank Account].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$IC Bank Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [IC Bank Account] LEFT JOIN [User] AS [User] ON [IC Bank Account].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |