Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/952
Table Type: Company
Table Name: Time Sheet Detail
Database Table Name: CRONUS UK Ltd_$Time Sheet Detail$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 Time Sheet Detail can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Time Sheet Detail$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]
,[Dimension Set ID]
,[Id]
,[Last Modified DateTime]
,[Job Id]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Time Sheet Detail$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$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail]
LEFT JOIN
[CRONUS UK Ltd_$Cause of Absence$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cause of Absence]
ON
[Time Sheet Detail].[Cause of Absence Code] = [Cause of Absence].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Time Sheet Detail].[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 Detail].[Job Id] = [Job].[$systemId]
LEFT JOIN
[User] AS [User]
ON
[Time Sheet Detail].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Time Sheet Detail].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Time Sheet Detail table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Time Sheet No. | Time Sheet No. | Normal | Code | 20 | Time Sheet No_ | nvarchar(40) |
2 | Time Sheet Line No. | Time Sheet Line No. | Normal | Integer | 4 | Time Sheet Line No_ | int |
3 | Date | Date | Normal | Date | 4 | Date | datetime |
4 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
5 | Resource No. | Resource No. | Normal | Code | 20 | Resource No_ | nvarchar(40) |
Key to join to the Resource table.Show/hide example querySELECT [Time Sheet Detail].[Resource No_] ,[Resource].[No_] FROM [CRONUS UK Ltd_$Time Sheet Detail$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail] LEFT JOIN [CRONUS UK Ltd_$Resource$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Resource] ON [Time Sheet Detail].[Resource No_] = [Resource].[No_] | |||||||
6 | Job No. | Job No. | Normal | Code | 20 | Job No_ | nvarchar(40) |
Key to join to the Job table.Show/hide example querySELECT [Time Sheet Detail].[Job No_] ,[Job].[No_] FROM [CRONUS UK Ltd_$Time Sheet Detail$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail] LEFT JOIN [CRONUS UK Ltd_$Job$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job] ON [Time Sheet Detail].[Job No_] = [Job].[No_] | |||||||
7 | Job Task No. | Job Task No. | Normal | Code | 20 | Job Task No_ | nvarchar(40) |
9 | Cause of Absence Code | Cause of Absence Code | Normal | Code | 10 | Cause of Absence Code | nvarchar(20) |
Key to join to the Cause of Absence table.Show/hide example querySELECT [Time Sheet Detail].[Cause of Absence Code] ,[Cause of Absence].[Code] FROM [CRONUS UK Ltd_$Time Sheet Detail$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail] LEFT JOIN [CRONUS UK Ltd_$Cause of Absence$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cause of Absence] ON [Time Sheet Detail].[Cause of Absence Code] = [Cause of Absence].[Code] | |||||||
13 | Service Order No. | Service Order No. | Normal | Code | 20 | Service Order No_ | nvarchar(40) |
14 | Service Order Line No. | Service Order Line No. | Normal | Integer | 4 | Service Order Line No_ | int |
15 | Quantity | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
16 | Posted Quantity | Posted Quantity | Normal | Decimal | 12 | Posted Quantity | decimal(38,38) |
18 | Assembly Order No. | Assembly Order No. | Normal | Code | 20 | Assembly Order No_ | nvarchar(40) |
19 | Assembly Order Line No. | Assembly Order Line No. | Normal | Integer | 4 | Assembly Order Line No_ | int |
20 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
23 | Posted | Posted | Normal | Boolean | 4 | Posted | tinyint |
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 [Time Sheet Detail].[Dimension Set ID] ,[Dimension Set Entry].[Dimension Set ID] FROM [CRONUS UK Ltd_$Time Sheet Detail$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail] LEFT JOIN [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry] ON [Time Sheet Detail].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID] | |||||||
8000 | Id | Id | Normal | GUID | 16 | Id | uniqueidentifier |
8001 | Last Modified DateTime | Last Modified DateTime | Normal | DateTime | 8 | Last Modified DateTime | datetime |
8002 | Job Id | Job Id | Normal | GUID | 16 | Job Id | uniqueidentifier |
Key to join to the Job table.Show/hide example querySELECT [Time Sheet Detail].[Job Id] ,[Job].[$systemId] FROM [CRONUS UK Ltd_$Time Sheet Detail$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail] LEFT JOIN [CRONUS UK Ltd_$Job$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job] ON [Time Sheet Detail].[Job Id] = [Job].[$systemId] | |||||||
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 [Time Sheet Detail].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Time Sheet Detail$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Time Sheet Detail] LEFT JOIN [User] AS [User] ON [Time Sheet Detail].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |