Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1828
Table Type: Company
Table Name: Business Unit Information
Database Table Name: CRONUS UK Ltd_$Business Unit Information$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 Business Unit Information can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Code]
,[Name]
,[Company Name]
,[Currency Code]
,[Currency Exchange Rate Table]
,[Starting Date]
,[Ending Date]
,[Exch_ Rate Gains Acc_]
,[Exch_ Rate Losses Acc_]
,[Residual Account]
,[Comp_ Exch_ Rate Gains Acc_]
,[Comp_ Exch_ Rate Losses Acc_]
,[Equity Exch_ Rate Gains Acc_]
,[Equity Exch_ Rate Losses Acc_]
,[Minority Exch_ Rate Gains Acc_]
,[Minority Exch_ Rate Losses Acc]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information]
LEFT JOIN
[Company] AS [Company]
ON
[Business Unit Information].[Company Name] = [Company].[Name]
LEFT JOIN
[CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
ON
[Business Unit Information].[Currency Code] = [Currency].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
ON
[Business Unit Information].[Ending Date] = [Inventory Period].[Ending Date]
LEFT JOIN
[CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
ON
[Business Unit Information].[Residual Account] = [G/L Account].[No_]
LEFT JOIN
[User] AS [User]
ON
[Business Unit Information].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Business Unit Information].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Business Unit Information table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Code | Code | Normal | Code | 20 | Code | nvarchar(40) |
2 | Name | Name | Normal | Text | 30 | Name | nvarchar(60) |
3 | Company Name | Company Name | Normal | Text | 30 | Company Name | nvarchar(60) |
Key to join to the Company table.Show/hide example querySELECT [Business Unit Information].[Company Name] ,[Company].[Name] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [Company] AS [Company] ON [Business Unit Information].[Company Name] = [Company].[Name] | |||||||
4 | Currency Code | Currency Code | Normal | Code | 10 | Currency Code | nvarchar(20) |
Key to join to the Currency table.Show/hide example querySELECT [Business Unit Information].[Currency Code] ,[Currency].[Code] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency] ON [Business Unit Information].[Currency Code] = [Currency].[Code] | |||||||
5 | Currency Exchange Rate Table | Currency Exchange Rate Table | Normal | Option | 4 | Currency Exchange Rate Table | int |
Available options are:
| |||||||
6 | Starting Date | Starting Date | Normal | Date | 4 | Starting Date | datetime |
7 | Ending Date | Ending Date | Normal | Date | 4 | Ending Date | datetime |
Key to join to the Inventory Period table.Show/hide example querySELECT [Business Unit Information].[Ending Date] ,[Inventory Period].[Ending Date] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period] ON [Business Unit Information].[Ending Date] = [Inventory Period].[Ending Date] | |||||||
8 | Exch. Rate Gains Acc. | Exch. Rate Gains Acc. | Normal | Code | 20 | Exch_ Rate Gains Acc_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [Business Unit Information].[Exch_ Rate Gains Acc_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [Business Unit Information].[Exch_ Rate Gains Acc_] = [G/L Account].[No_] | |||||||
9 | Exch. Rate Losses Acc. | Exch. Rate Losses Acc. | Normal | Code | 20 | Exch_ Rate Losses Acc_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [Business Unit Information].[Exch_ Rate Losses Acc_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [Business Unit Information].[Exch_ Rate Losses Acc_] = [G/L Account].[No_] | |||||||
10 | Residual Account | Residual Account | Normal | Code | 20 | Residual Account | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [Business Unit Information].[Residual Account] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [Business Unit Information].[Residual Account] = [G/L Account].[No_] | |||||||
11 | Comp. Exch. Rate Gains Acc. | Comp. Exch. Rate Gains Acc. | Normal | Code | 20 | Comp_ Exch_ Rate Gains Acc_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [Business Unit Information].[Comp_ Exch_ Rate Gains Acc_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [Business Unit Information].[Comp_ Exch_ Rate Gains Acc_] = [G/L Account].[No_] | |||||||
12 | Comp. Exch. Rate Losses Acc. | Comp. Exch. Rate Losses Acc. | Normal | Code | 20 | Comp_ Exch_ Rate Losses Acc_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [Business Unit Information].[Comp_ Exch_ Rate Losses Acc_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [Business Unit Information].[Comp_ Exch_ Rate Losses Acc_] = [G/L Account].[No_] | |||||||
13 | Equity Exch. Rate Gains Acc. | Equity Exch. Rate Gains Acc. | Normal | Code | 20 | Equity Exch_ Rate Gains Acc_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [Business Unit Information].[Equity Exch_ Rate Gains Acc_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [Business Unit Information].[Equity Exch_ Rate Gains Acc_] = [G/L Account].[No_] | |||||||
14 | Equity Exch. Rate Losses Acc. | Equity Exch. Rate Losses Acc. | Normal | Code | 20 | Equity Exch_ Rate Losses Acc_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [Business Unit Information].[Equity Exch_ Rate Losses Acc_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [Business Unit Information].[Equity Exch_ Rate Losses Acc_] = [G/L Account].[No_] | |||||||
15 | Minority Exch. Rate Gains Acc. | Minority Exch. Rate Gains Acc. | Normal | Code | 20 | Minority Exch_ Rate Gains Acc_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [Business Unit Information].[Minority Exch_ Rate Gains Acc_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [Business Unit Information].[Minority Exch_ Rate Gains Acc_] = [G/L Account].[No_] | |||||||
16 | Minority Exch. Rate Losses Acc | Minority Exch. Rate Losses Acc | Normal | Code | 20 | Minority Exch_ Rate Losses Acc | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [Business Unit Information].[Minority Exch_ Rate Losses Acc] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [Business Unit Information].[Minority Exch_ Rate Losses Acc] = [G/L Account].[No_] | |||||||
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 [Business Unit Information].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Business Unit Information$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Business Unit Information] LEFT JOIN [User] AS [User] ON [Business Unit Information].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |