Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5856
Table Type: Company
Table Name: Direct Trans. Header
Database Table Name: CRONUS UK Ltd_$Direct Trans_ Header$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 Direct Trans. Header can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Transfer-from Code]
,[Transfer-from Name]
,[Transfer-from Name 2]
,[Transfer-from Address]
,[Transfer-from Address 2]
,[Transfer-from Post Code]
,[Transfer-from City]
,[Transfer-from County]
,[Trsf_-from Country_Region Code]
,[Transfer-to Code]
,[Transfer-to Name]
,[Transfer-to Name 2]
,[Transfer-to Address]
,[Transfer-to Address 2]
,[Transfer-to Post Code]
,[Transfer-to City]
,[Transfer-to County]
,[Trsf_-to Country_Region Code]
,[Transfer Order Date]
,[Posting Date]
,[Shortcut Dimension 1 Code]
,[Shortcut Dimension 2 Code]
,[Transfer Order No_]
,[No_ Series]
,[Transfer-from Contact]
,[Transfer-to Contact]
,[External Document No_]
,[Dimension Set ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Direct Trans. Header].[Transfer-from Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
ON
[Direct Trans. Header].[Transfer-from Post Code] = [Post Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
ON
[Direct Trans. Header].[Transfer-from City] = [Post Code].[City]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Direct Trans. Header].[Transfer-to Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
ON
[Direct Trans. Header].[Transfer-to Post Code] = [Post Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
ON
[Direct Trans. Header].[Transfer-to City] = [Post Code].[City]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Direct Trans. Header].[Shortcut Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Direct Trans. Header].[Shortcut Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Direct Trans. Header].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
[User] AS [User]
ON
[Direct Trans. Header].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Direct Trans. Header].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Direct Trans. Header 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 | Transfer-from Code | Transfer-from Code | Normal | Code | 10 | Transfer-from Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Direct Trans. Header].[Transfer-from Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Direct Trans. Header].[Transfer-from Code] = [Location].[Code] | |||||||
3 | Transfer-from Name | Transfer-from Name | Normal | Text | 100 | Transfer-from Name | nvarchar(200) |
4 | Transfer-from Name 2 | Transfer-from Name 2 | Normal | Text | 50 | Transfer-from Name 2 | nvarchar(100) |
5 | Transfer-from Address | Transfer-from Address | Normal | Text | 100 | Transfer-from Address | nvarchar(200) |
6 | Transfer-from Address 2 | Transfer-from Address 2 | Normal | Text | 50 | Transfer-from Address 2 | nvarchar(100) |
7 | Transfer-from Post Code | Transfer-from ZIP Code | Normal | Code | 20 | Transfer-from Post Code | nvarchar(40) |
Key to join to the Post Code table.Show/hide example querySELECT [Direct Trans. Header].[Transfer-from Post Code] ,[Post Code].[Code] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code] ON [Direct Trans. Header].[Transfer-from Post Code] = [Post Code].[Code] | |||||||
8 | Transfer-from City | Transfer-from City | Normal | Text | 30 | Transfer-from City | nvarchar(60) |
Key to join to the Post Code table.Show/hide example querySELECT [Direct Trans. Header].[Transfer-from City] ,[Post Code].[City] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code] ON [Direct Trans. Header].[Transfer-from City] = [Post Code].[City] | |||||||
9 | Transfer-from County | Transfer-from State | Normal | Text | 30 | Transfer-from County | nvarchar(60) |
10 | Trsf.-from Country/Region Code | Trsf.-from Country/Region Code | Normal | Code | 10 | Trsf_-from Country_Region Code | nvarchar(20) |
11 | Transfer-to Code | Transfer-to Code | Normal | Code | 10 | Transfer-to Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Direct Trans. Header].[Transfer-to Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Direct Trans. Header].[Transfer-to Code] = [Location].[Code] | |||||||
12 | Transfer-to Name | Transfer-to Name | Normal | Text | 100 | Transfer-to Name | nvarchar(200) |
13 | Transfer-to Name 2 | Transfer-to Name 2 | Normal | Text | 50 | Transfer-to Name 2 | nvarchar(100) |
14 | Transfer-to Address | Transfer-to Address | Normal | Text | 100 | Transfer-to Address | nvarchar(200) |
15 | Transfer-to Address 2 | Transfer-to Address 2 | Normal | Text | 50 | Transfer-to Address 2 | nvarchar(100) |
16 | Transfer-to Post Code | Transfer-to ZIP Code | Normal | Code | 20 | Transfer-to Post Code | nvarchar(40) |
Key to join to the Post Code table.Show/hide example querySELECT [Direct Trans. Header].[Transfer-to Post Code] ,[Post Code].[Code] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code] ON [Direct Trans. Header].[Transfer-to Post Code] = [Post Code].[Code] | |||||||
17 | Transfer-to City | Transfer-to City | Normal | Text | 30 | Transfer-to City | nvarchar(60) |
Key to join to the Post Code table.Show/hide example querySELECT [Direct Trans. Header].[Transfer-to City] ,[Post Code].[City] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code] ON [Direct Trans. Header].[Transfer-to City] = [Post Code].[City] | |||||||
18 | Transfer-to County | Transfer-to State | Normal | Text | 30 | Transfer-to County | nvarchar(60) |
19 | Trsf.-to Country/Region Code | Trsf.-to Country/Region Code | Normal | Code | 10 | Trsf_-to Country_Region Code | nvarchar(20) |
20 | Transfer Order Date | Transfer Order Date | Normal | Date | 4 | Transfer Order Date | datetime |
21 | Posting Date | Posting Date | Normal | Date | 4 | Posting Date | datetime |
22 | Comment | Comment | FlowField | Boolean | 4 | ||
23 | Shortcut Dimension 1 Code | Shortcut Dimension 1 Code | Normal | Code | 20 | Shortcut Dimension 1 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Direct Trans. Header].[Shortcut Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Direct Trans. Header].[Shortcut Dimension 1 Code] = [Dimension].[Code] | |||||||
24 | Shortcut Dimension 2 Code | Shortcut Dimension 2 Code | Normal | Code | 20 | Shortcut Dimension 2 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Direct Trans. Header].[Shortcut Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Direct Trans. Header].[Shortcut Dimension 2 Code] = [Dimension].[Code] | |||||||
25 | Transfer Order No. | Transfer Order No. | Normal | Code | 20 | Transfer Order No_ | nvarchar(40) |
Key to join to the Transfer Header table.Show/hide example querySELECT [Direct Trans. Header].[Transfer Order No_] ,[Transfer Header].[No_] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$Transfer Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Transfer Header] ON [Direct Trans. Header].[Transfer Order No_] = [Transfer Header].[No_] | |||||||
26 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Direct Trans. Header].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Direct Trans. Header].[No_ Series] = [No. Series].[Code] | |||||||
30 | Transfer-from Contact | Transfer-from Contact | Normal | Text | 100 | Transfer-from Contact | nvarchar(200) |
31 | Transfer-to Contact | Transfer-to Contact | Normal | Text | 100 | Transfer-to Contact | nvarchar(200) |
32 | External Document No. | External Document No. | Normal | Code | 35 | External Document No_ | nvarchar(70) |
480 | Dimension Set ID | Dimension Set ID | Normal | Integer | 4 | Dimension Set ID | int |
Key to join to the Dimension Set Entry table.Show/hide example querySELECT [Direct Trans. Header].[Dimension Set ID] ,[Dimension Set Entry].[Dimension Set ID] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry] ON [Direct Trans. Header].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID] | |||||||
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 [Direct Trans. Header].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Direct Trans_ Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Direct Trans. Header] LEFT JOIN [User] AS [User] ON [Direct Trans. Header].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |