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
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 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 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
3 | Time Sheet Starting Date | Time Sheet Starting Date | Normal | Date | 4 | Time Sheet Starting Date | datetime |
5 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
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 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_] | |||||||
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 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] | |||||||
10 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
11 | Work Type Code | Work Type Code | Normal | Code | 10 | Work Type Code | nvarchar(20) |
Key to join to the Work Type table.Show/hide example querySELECT [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] | |||||||
12 | Approver ID | Approver ID | Normal | Code | 50 | Approver ID | nvarchar(100) |
Key to join to the User Setup table.Show/hide example querySELECT [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] | |||||||
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 | Total Quantity | Total Quantity | FlowField | Decimal | 12 | ||
17 | Chargeable | Chargeable | Normal | Boolean | 4 | Chargeable | tinyint |
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:
| |||||||
21 | Approved By | Approved By | Normal | Code | 50 | Approved By | nvarchar(100) |
Key to join to the User Setup table.Show/hide example querySELECT [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] | |||||||
22 | Approval Date | Approval Date | Normal | Date | 4 | Approval Date | datetime |
23 | Posted | Posted | Normal | Boolean | 4 | Posted | tinyint |
26 | Comment | Comment | FlowField | Boolean | 4 | ||
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 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] | |||||||
8002 | Job Id | Job Id | Normal | GUID | 16 | Job Id | uniqueidentifier |
Key to join to the Job table.Show/hide example querySELECT [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 | 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 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] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |