Phys. Invt. Record Header

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5877

Table Type: Company

Table Name: Phys. Invt. Record Header
Database Table Name: CRONUS UK Ltd_$Phys_ Invt_ Record Header$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 5877

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. Record Header can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Phys_ Invt_ Record Header$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]
   ,[Recorded by User ID]
   ,[Location Code]
   ,[Bin Code]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Phys_ Invt_ Record 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_ Record Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Record Header]
LEFT JOIN
   [CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee]
      ON
         [Phys. Invt. Record Header].[Person Responsible] = [Employee].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee]
      ON
         [Phys. Invt. Record Header].[Person Recorded] = [Employee].[No_]
LEFT JOIN
   [User] AS [User]
      ON
         [Phys. Invt. Record Header].[Recorded by User ID] = [User].[User Name]
LEFT JOIN
   [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
      ON
         [Phys. Invt. Record Header].[Location Code] = [Location].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin]
      ON
         [Phys. Invt. Record Header].[Bin Code] = [Bin].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Phys. Invt. Record Header].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Phys. Invt. Record Header].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Phys. Invt. Record Header table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Order No. SearchOrder No.NormalCode20Order No_nvarchar(40)
2Recording No. Primary Key SearchRecording No.NormalInteger4Recording No_int
10Description Primary Key SearchDescriptionNormalText100Descriptionnvarchar(200)
11Status SearchStatusNormalOption4Statusint
Available options are:
  • “Open”
  • “Finished”
30Comment SearchCommentFlowFieldBoolean4
31Person Responsible SearchPerson ResponsibleNormalCode20Person Responsiblenvarchar(40)
Key to join to the Employee table.

Show/hide example query

SELECT
	       [Phys. Invt. Record Header].[Person Responsible]
	       ,[Employee].[No_]
	FROM
	       [CRONUS UK Ltd_$Phys_ Invt_ Record Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Record Header]
	LEFT JOIN
	       [CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee]
	              ON
	                     [Phys. Invt. Record Header].[Person Responsible] = [Employee].[No_]
40Allow Recording Without Order SearchAllow Recording Without OrderNormalBoolean4Allow Recording Without Ordertinyint
100Date Recorded SearchDate RecordedNormalDate4Date Recordeddatetime
101Time Recorded SearchTime RecordedNormalTime4Time Recordeddatetime
102Person Recorded SearchPerson RecordedNormalCode20Person Recordednvarchar(40)
Key to join to the Employee table.

Show/hide example query

SELECT
	       [Phys. Invt. Record Header].[Person Recorded]
	       ,[Employee].[No_]
	FROM
	       [CRONUS UK Ltd_$Phys_ Invt_ Record Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Record Header]
	LEFT JOIN
	       [CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee]
	              ON
	                     [Phys. Invt. Record Header].[Person Recorded] = [Employee].[No_]
103Recorded by User ID SearchCreated by UserNormalCode50Recorded by User IDnvarchar(100)
Key to join to the User table.

Show/hide example query

SELECT
	       [Phys. Invt. Record Header].[Recorded by User ID]
	       ,[User].[User Name]
	FROM
	       [CRONUS UK Ltd_$Phys_ Invt_ Record Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Record Header]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Phys. Invt. Record Header].[Recorded by User ID] = [User].[User Name]
110Location Code SearchLocation CodeNormalCode10Location Codenvarchar(20)
Key to join to the Location table.

Show/hide example query

SELECT
	       [Phys. Invt. Record Header].[Location Code]
	       ,[Location].[Code]
	FROM
	       [CRONUS UK Ltd_$Phys_ Invt_ Record Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Record Header]
	LEFT JOIN
	       [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
	              ON
	                     [Phys. Invt. Record Header].[Location Code] = [Location].[Code]
111Bin Code SearchBin CodeNormalCode20Bin Codenvarchar(40)
Key to join to the Bin table.

Show/hide example query

SELECT
	       [Phys. Invt. Record Header].[Bin Code]
	       ,[Bin].[Code]
	FROM
	       [CRONUS UK Ltd_$Phys_ Invt_ Record Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Record Header]
	LEFT JOIN
	       [CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin]
	              ON
	                     [Phys. Invt. Record Header].[Bin Code] = [Bin].[Code]
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [Phys. Invt. Record Header].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Phys_ Invt_ Record Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Phys. Invt. Record Header]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Phys. Invt. Record Header].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Show/hide tables related from Phys. Invt. Record Header table

Leave a Reply

Your email address will not be published. Required fields are marked *