Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5881
Table Type: Company
Table Name: Pstd. Phys. Invt. Record Hdr
Database Table Name: CRONUS UK Ltd_$Pstd_ Phys_ Invt_ Record Hdr$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 Pstd. Phys. Invt. Record Hdr can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Pstd_ Phys_ Invt_ Record Hdr$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Order No_]
,[Recording No_]
,[Description]
,[Status]
,[Person Responsible]
,[Allow Recording Without Order]
,[Date Recorded]
,[Time Recorded]
,[Person Recorded]
,[Location Code]
,[Bin Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Pstd_ Phys_ Invt_ Record Hdr$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Pstd_ Phys_ Invt_ Record Hdr$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Pstd. Phys. Invt. Record Hdr]
LEFT JOIN
[CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee]
ON
[Pstd. Phys. Invt. Record Hdr].[Person Responsible] = [Employee].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee]
ON
[Pstd. Phys. Invt. Record Hdr].[Person Recorded] = [Employee].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Pstd. Phys. Invt. Record Hdr].[Location Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin]
ON
[Pstd. Phys. Invt. Record Hdr].[Bin Code] = [Bin].[Code]
LEFT JOIN
[User] AS [User]
ON
[Pstd. Phys. Invt. Record Hdr].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Pstd. Phys. Invt. Record Hdr].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Pstd. Phys. Invt. Record Hdr table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Order No. | Order No. | Normal | Code | 20 | Order No_ | nvarchar(40) |
2 | Recording No. | Recording No. | Normal | Integer | 4 | Recording No_ | int |
10 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
11 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
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 [Pstd. Phys. Invt. Record Hdr].[Person Responsible] ,[Employee].[No_] FROM [CRONUS UK Ltd_$Pstd_ Phys_ Invt_ Record Hdr$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Pstd. Phys. Invt. Record Hdr] LEFT JOIN [CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee] ON [Pstd. Phys. Invt. Record Hdr].[Person Responsible] = [Employee].[No_] | |||||||
40 | Allow Recording Without Order | Allow Recording Without Order | Normal | Boolean | 4 | Allow Recording Without Order | tinyint |
100 | Date Recorded | Date Recorded | Normal | Date | 4 | Date Recorded | datetime |
101 | Time Recorded | Time Recorded | Normal | Time | 4 | Time Recorded | datetime |
102 | Person Recorded | Person Recorded | Normal | Code | 20 | Person Recorded | nvarchar(40) |
Key to join to the Employee table.Show/hide example querySELECT [Pstd. Phys. Invt. Record Hdr].[Person Recorded] ,[Employee].[No_] FROM [CRONUS UK Ltd_$Pstd_ Phys_ Invt_ Record Hdr$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Pstd. Phys. Invt. Record Hdr] LEFT JOIN [CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee] ON [Pstd. Phys. Invt. Record Hdr].[Person Recorded] = [Employee].[No_] | |||||||
110 | Location Code | Location Code | Normal | Code | 10 | Location Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Pstd. Phys. Invt. Record Hdr].[Location Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Pstd_ Phys_ Invt_ Record Hdr$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Pstd. Phys. Invt. Record Hdr] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Pstd. Phys. Invt. Record Hdr].[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 [Pstd. Phys. Invt. Record Hdr].[Bin Code] ,[Bin].[Code] FROM [CRONUS UK Ltd_$Pstd_ Phys_ Invt_ Record Hdr$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Pstd. Phys. Invt. Record Hdr] LEFT JOIN [CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin] ON [Pstd. Phys. Invt. Record Hdr].[Bin Code] = [Bin].[Code] | |||||||
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 [Pstd. Phys. Invt. Record Hdr].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Pstd_ Phys_ Invt_ Record Hdr$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Pstd. Phys. Invt. Record Hdr] LEFT JOIN [User] AS [User] ON [Pstd. Phys. Invt. Record Hdr].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |