Time Sheet Line

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

Table Type: Company

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

Table Number: 951

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

Show/hide an example select of all columns

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

Show/hide an example select of all columns by name

SELECT
   [Time Sheet No_]
   ,[Line No_]
   ,[Time Sheet Starting Date]
   ,[Type]
   ,[Job No_]
   ,[Job Task No_]
   ,[Cause of Absence Code]
   ,[Description]
   ,[Work Type Code]
   ,[Approver ID]
   ,[Service Order No_]
   ,[Service Order Line No_]
   ,[Chargeable]
   ,[Assembly Order No_]
   ,[Assembly Order Line No_]
   ,[Status]
   ,[Approved By]
   ,[Approval Date]
   ,[Posted]
   ,[Dimension Set ID]
   ,[Job Id]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Time Sheet Line$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 Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Line]
LEFT JOIN
   [CRONUS UK Ltd_$Cause of Absence$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cause of Absence]
      ON
         [Time Sheet Line].[Cause of Absence Code] = [Cause of Absence].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Work Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Work Type]
      ON
         [Time Sheet Line].[Work Type Code] = [Work Type].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$User Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [User Setup]
      ON
         [Time Sheet Line].[Approver ID] = [User Setup].[User ID]
LEFT JOIN
   [CRONUS UK Ltd_$User Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [User Setup]
      ON
         [Time Sheet Line].[Approved By] = [User Setup].[User ID]
LEFT JOIN
   [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
      ON
         [Time Sheet Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
   [CRONUS UK Ltd_$Job$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job]
      ON
         [Time Sheet Line].[Job Id] = [Job].[$systemId]
LEFT JOIN
   [User] AS [User]
      ON
         [Time Sheet Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Time Sheet Line].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Time Sheet Line table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Time Sheet No. SearchTime Sheet No.NormalCode20Time Sheet No_nvarchar(40)
2Line No. Primary Key SearchLine No.NormalInteger4Line No_int
3Time Sheet Starting Date Primary Key SearchTime Sheet Starting DateNormalDate4Time Sheet Starting Datedatetime
5Type SearchTypeNormalOption4Typeint
Available options are:
  • ” “
  • “Resource”
  • “Job”
  • “Service”
  • “Absence”
  • “Assembly Order”
6Job No. SearchJob No.NormalCode20Job No_nvarchar(40)
Key to join to the Job table.

Show/hide example query

SELECT
	       [Time Sheet Line].[Job No_]
	       ,[Job].[No_]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Job$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job]
	              ON
	                     [Time Sheet Line].[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 Line].[Cause of Absence Code]
	       ,[Cause of Absence].[Code]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Cause of Absence$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cause of Absence]
	              ON
	                     [Time Sheet Line].[Cause of Absence Code] = [Cause of Absence].[Code]
10Description SearchDescriptionNormalText100Descriptionnvarchar(200)
11Work Type Code SearchWork Type CodeNormalCode10Work Type Codenvarchar(20)
Key to join to the Work Type table.

Show/hide example query

SELECT
	       [Time Sheet Line].[Work Type Code]
	       ,[Work Type].[Code]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Work Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Work Type]
	              ON
	                     [Time Sheet Line].[Work Type Code] = [Work Type].[Code]
12Approver ID SearchApprover IDNormalCode50Approver IDnvarchar(100)
Key to join to the User Setup table.

Show/hide example query

SELECT
	       [Time Sheet Line].[Approver ID]
	       ,[User Setup].[User ID]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$User Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [User Setup]
	              ON
	                     [Time Sheet Line].[Approver ID] = [User Setup].[User ID]
13Service Order No. SearchService Order No.NormalCode20Service Order No_nvarchar(40)
14Service Order Line No. SearchService Order Line No.NormalInteger4Service Order Line No_int
15Total Quantity SearchTotal QuantityFlowFieldDecimal12
17Chargeable SearchChargeableNormalBoolean4Chargeabletinyint
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”
21Approved By SearchApproved ByNormalCode50Approved Bynvarchar(100)
Key to join to the User Setup table.

Show/hide example query

SELECT
	       [Time Sheet Line].[Approved By]
	       ,[User Setup].[User ID]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$User Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [User Setup]
	              ON
	                     [Time Sheet Line].[Approved By] = [User Setup].[User ID]
22Approval Date SearchApproval DateNormalDate4Approval Datedatetime
23Posted SearchPostedNormalBoolean4Postedtinyint
26Comment SearchCommentFlowFieldBoolean4
480Dimension Set ID SearchDimension Set IDNormalInteger4Dimension Set IDint
Key to join to the Dimension Set Entry table.

Show/hide example query

SELECT
	       [Time Sheet Line].[Dimension Set ID]
	       ,[Dimension Set Entry].[Dimension Set ID]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
	              ON
	                     [Time Sheet Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
8002Job Id SearchJob IdNormalGUID16Job Iduniqueidentifier
Key to join to the Job table.

Show/hide example query

SELECT
	       [Time Sheet Line].[Job Id]
	       ,[Job].[$systemId]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Job$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job]
	              ON
	                     [Time Sheet Line].[Job Id] = [Job].[$systemId]
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 Line].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Time Sheet Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Line]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Time Sheet Line].[$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 *