Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5875
Table Type: Company
Table Name: Phys. Invt. Order Header
Database Table Name: CRONUS UK Ltd_$Phys_ Invt_ Order 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 Phys. Invt. Order Header can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Description]
,[Status]
,[Order Date]
,[Posting Date]
,[Person Responsible]
,[Reason Code]
,[Gen_ Bus_ Posting Group]
,[Shortcut Dimension 1 Code]
,[Shortcut Dimension 2 Code]
,[Posting No_ Series]
,[No_ Series]
,[Posting No_]
,[Last Posting No_]
,[Location Code]
,[Bin Code]
,[Dimension Set ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Phys_ Invt_ Order 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_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header]
LEFT JOIN
[CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee]
ON
[Phys. Invt. Order Header].[Person Responsible] = [Employee].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code]
ON
[Phys. Invt. Order Header].[Reason Code] = [Reason Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Phys. Invt. Order Header].[Shortcut Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Phys. Invt. Order Header].[Shortcut Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Phys. Invt. Order Header].[Location Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin]
ON
[Phys. Invt. Order Header].[Bin Code] = [Bin].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Phys. Invt. Order Header].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
[User] AS [User]
ON
[Phys. Invt. Order Header].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Phys. Invt. Order Header].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Phys. Invt. Order 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) |
10 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
11 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
20 | Order Date | Order Date | Normal | Date | 4 | Order Date | datetime |
21 | Posting Date | Posting Date | Normal | Date | 4 | Posting Date | datetime |
30 | Comment | Comment | FlowField | Boolean | 4 | ||
31 | Person Responsible | Person Responsible | Normal | Code | 20 | Person Responsible | nvarchar(40) |
Key to join to the Employee table.Show/hide example querySELECT [Phys. Invt. Order Header].[Person Responsible] ,[Employee].[No_] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee] ON [Phys. Invt. Order Header].[Person Responsible] = [Employee].[No_] | |||||||
40 | Reason Code | Reason Code | Normal | Code | 10 | Reason Code | nvarchar(20) |
Key to join to the Reason Code table.Show/hide example querySELECT [Phys. Invt. Order Header].[Reason Code] ,[Reason Code].[Code] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code] ON [Phys. Invt. Order Header].[Reason Code] = [Reason Code].[Code] | |||||||
41 | Gen. Bus. Posting Group | Gen. Bus. Posting Group | Normal | Code | 20 | Gen_ Bus_ Posting Group | nvarchar(40) |
Key to join to the Gen. Business Posting Group table.Show/hide example querySELECT [Phys. Invt. Order Header].[Gen_ Bus_ Posting Group] ,[Gen. Business Posting Group].[Code] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [CRONUS UK Ltd_$Gen_ Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Business Posting Group] ON [Phys. Invt. Order Header].[Gen_ Bus_ Posting Group] = [Gen. Business Posting Group].[Code] | |||||||
50 | 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 [Phys. Invt. Order Header].[Shortcut Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Phys. Invt. Order Header].[Shortcut Dimension 1 Code] = [Dimension].[Code] | |||||||
51 | 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 [Phys. Invt. Order Header].[Shortcut Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Phys. Invt. Order Header].[Shortcut Dimension 2 Code] = [Dimension].[Code] | |||||||
60 | Posting No. Series | Posting No. Series | Normal | Code | 20 | Posting No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Phys. Invt. Order Header].[Posting No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Phys. Invt. Order Header].[Posting No_ Series] = [No. Series].[Code] | |||||||
61 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Phys. Invt. Order Header].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Phys. Invt. Order Header].[No_ Series] = [No. Series].[Code] | |||||||
64 | Posting No. | Posting No. | Normal | Code | 20 | Posting No_ | nvarchar(40) |
65 | Last Posting No. | Last Posting No. | Normal | Code | 20 | Last Posting No_ | nvarchar(40) |
71 | No. Finished Recordings | No. Finished Recordings | FlowField | Integer | 4 | ||
110 | Location Code | Location Code | Normal | Code | 10 | Location Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Phys. Invt. Order Header].[Location Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Phys. Invt. Order Header].[Location Code] = [Location].[Code] | |||||||
111 | Bin Code | Bin Code | Normal | Code | 20 | Bin Code | nvarchar(40) |
Key to join to the Bin table.Show/hide example querySELECT [Phys. Invt. Order Header].[Bin Code] ,[Bin].[Code] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin] ON [Phys. Invt. Order Header].[Bin Code] = [Bin].[Code] | |||||||
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 [Phys. Invt. Order Header].[Dimension Set ID] ,[Dimension Set Entry].[Dimension Set ID] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry] ON [Phys. Invt. Order 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 [Phys. Invt. Order Header].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Phys_ Invt_ Order Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Order Header] LEFT JOIN [User] AS [User] ON [Phys. Invt. Order Header].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |