Time Sheet Detail Archive

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

Table Type: Company

Table Name: Time Sheet Detail Archive
Database Table Name: CRONUS UK Ltd_$Time Sheet Detail Archive$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 956

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 Time Sheet Detail Archive can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Time Sheet Detail Archive$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Time Sheet No_]
   ,[Time Sheet Line No_]
   ,[Date]
   ,[Type]
   ,[Resource No_]
   ,[Job No_]
   ,[Job Task No_]
   ,[Cause of Absence Code]
   ,[Service Order No_]
   ,[Service Order Line No_]
   ,[Quantity]
   ,[Posted Quantity]
   ,[Assembly Order No_]
   ,[Assembly Order Line No_]
   ,[Status]
   ,[Posted]
   ,[Document No_]
   ,[Posting Date]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Time Sheet Detail Archive$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [CRONUS UK Ltd_$Time Sheet Detail Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail Archive]
LEFT JOIN
   [CRONUS UK Ltd_$Cause of Absence$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cause of Absence]
      ON
         [Time Sheet Detail Archive].[Cause of Absence Code] = [Cause of Absence].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Time Sheet Detail Archive].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Time Sheet Detail Archive].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Time Sheet Detail Archive table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Time Sheet No. SearchTime Sheet No.NormalCode20Time Sheet No_nvarchar(40)
2Time Sheet Line No. Primary Key SearchTime Sheet Line No.NormalInteger4Time Sheet Line No_int
3Date Primary Key SearchDateNormalDate4Datedatetime
4Type Primary Key SearchTypeNormalOption4Typeint
Available options are:
  • ” “
  • “Resource”
  • “Job”
  • “Service”
  • “Absence”
  • “Assembly Order”
5Resource No. SearchResource No.NormalCode20Resource No_nvarchar(40)
Key to join to the Resource table.

Show/hide example query

SELECT
	       [Time Sheet Detail Archive].[Resource No_]
	       ,[Resource].[No_]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Detail Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail Archive]
	LEFT JOIN
	       [CRONUS UK Ltd_$Resource$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Resource]
	              ON
	                     [Time Sheet Detail Archive].[Resource No_] = [Resource].[No_]
6Job No. SearchJob No.NormalCode20Job No_nvarchar(40)
Key to join to the Job table.

Show/hide example query

SELECT
	       [Time Sheet Detail Archive].[Job No_]
	       ,[Job].[No_]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Detail Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail Archive]
	LEFT JOIN
	       [CRONUS UK Ltd_$Job$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job]
	              ON
	                     [Time Sheet Detail Archive].[Job No_] = [Job].[No_]
7Job Task No. SearchJob Task No.NormalCode20Job Task No_nvarchar(40)
9Cause of Absence Code SearchCause of Absence CodeNormalCode10Cause of Absence Codenvarchar(20)
Key to join to the Cause of Absence table.

Show/hide example query

SELECT
	       [Time Sheet Detail Archive].[Cause of Absence Code]
	       ,[Cause of Absence].[Code]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Detail Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail Archive]
	LEFT JOIN
	       [CRONUS UK Ltd_$Cause of Absence$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cause of Absence]
	              ON
	                     [Time Sheet Detail Archive].[Cause of Absence Code] = [Cause of Absence].[Code]
13Service Order No. SearchService Order No.NormalCode20Service Order No_nvarchar(40)
14Service Order Line No. SearchService Order Line No.NormalInteger4Service Order Line No_int
15Quantity SearchQuantityNormalDecimal12Quantitydecimal(38,38)
16Posted Quantity SearchPosted QuantityNormalDecimal12Posted Quantitydecimal(38,38)
18Assembly Order No. SearchAssembly Order No.NormalCode20Assembly Order No_nvarchar(40)
19Assembly Order Line No. SearchAssembly Order Line No.NormalInteger4Assembly Order Line No_int
20Status SearchStatusNormalOption4Statusint
Available options are:
  • “Open”
  • “Submitted”
  • “Rejected”
  • “Approved”
23Posted SearchPostedNormalBoolean4Postedtinyint
24Document No. SearchDocument No.NormalCode20Document No_nvarchar(40)
25Posting Date SearchPosting DateNormalDate4Posting Datedatetime
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
	       [Time Sheet Detail Archive].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Detail Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail Archive]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Time Sheet Detail Archive].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

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