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
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 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 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_] | |||||||
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 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_] | |||||||
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 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] | |||||||
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 |
24 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
25 | Posting Date | Posting Date | Normal | Date | 4 | Posting Date | datetime |
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 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] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |