Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5971
Table Type: Company
Table Name: Filed Contract Line
Database Table Name: CRONUS UK Ltd_$Filed Contract 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 Filed Contract Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Filed Contract Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[timestamp]
,[Entry No_]
,[Line No_]
,[Contract Type]
,[Contract No_]
,[Contract Status]
,[Service Item No_]
,[Description]
,[Serial No_]
,[Service Item Group Code]
,[Customer No_]
,[Ship-to Code]
,[Item No_]
,[Unit of Measure Code]
,[Response Time (Hours)]
,[Last Planned Service Date]
,[Next Planned Service Date]
,[Last Service Date]
,[Last Preventive Maint_ Date]
,[Invoiced to Date]
,[Credit Memo Date]
,[Contract Expiration Date]
,[Service Period]
,[Line Value]
,[Line Discount _]
,[Line Amount]
,[Variant Code]
,[Starting Date]
,[New Line]
,[Credited]
,[Line Cost]
,[Line Discount Amount]
,[Profit]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Filed Contract 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_$Filed Contract Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Filed Contract Line]
LEFT JOIN
[CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
ON
[Filed Contract Line].[Customer No_] = [Customer].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Item$c526b3e9-b8ca-4683-81ba-fcd5f6b1472a] AS [Item]
ON
[Filed Contract Line].[Item No_] = [Item].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Unit of Measure$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unit of Measure]
ON
[Filed Contract Line].[Unit of Measure Code] = [Unit of Measure].[Code]
Show/hide columns in Filed Contract Line table
Column ID | Column Name | Data Type | ||||
---|---|---|---|---|---|---|
1 | timestamp ![]() | timestamp | ||||
2 | Entry No_ ![]() ![]() | int | ||||
3 | Line No_ ![]() ![]() | int | ||||
4 | Contract Type ![]() | int | ||||
5 | Contract No_ ![]() | nvarchar(40) | ||||
6 | Contract Status ![]() | int | ||||
7 | Service Item No_ ![]() | nvarchar(40) | ||||
8 | Description ![]() | nvarchar(200) | ||||
9 | Serial No_ ![]() | nvarchar(100) | ||||
10 | Service Item Group Code ![]() | nvarchar(20) | ||||
11 | Customer No_ ![]() | nvarchar(40) | ||||
Key to join to the Customer table.Show/hide example querySELECT
[Filed Contract Line].[Customer No_]
,[Customer].[No_]
FROM
[CRONUS UK Ltd_$Filed Contract Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Filed Contract Line]
LEFT JOIN
[CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
ON
[Filed Contract Line].[Customer No_] = [Customer].[No_] | ||||||
12 | Ship-to Code ![]() | nvarchar(20) | ||||
13 | Item No_ ![]() | nvarchar(40) | ||||
Key to join to the Item table.Show/hide example querySELECT
[Filed Contract Line].[Item No_]
,[Item].[No_]
FROM
[CRONUS UK Ltd_$Filed Contract Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Filed Contract Line]
LEFT JOIN
[CRONUS UK Ltd_$Item$c526b3e9-b8ca-4683-81ba-fcd5f6b1472a] AS [Item]
ON
[Filed Contract Line].[Item No_] = [Item].[No_] | ||||||
14 | Unit of Measure Code ![]() | nvarchar(20) | ||||
Key to join to the Unit of Measure table.Show/hide example querySELECT
[Filed Contract Line].[Unit of Measure Code]
,[Unit of Measure].[Code]
FROM
[CRONUS UK Ltd_$Filed Contract Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Filed Contract Line]
LEFT JOIN
[CRONUS UK Ltd_$Unit of Measure$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unit of Measure]
ON
[Filed Contract Line].[Unit of Measure Code] = [Unit of Measure].[Code] | ||||||
15 | Response Time (Hours) ![]() | decimal(38,38) | ||||
16 | Last Planned Service Date ![]() | datetime | ||||
17 | Next Planned Service Date ![]() | datetime | ||||
18 | Last Service Date ![]() | datetime | ||||
19 | Last Preventive Maint_ Date ![]() | datetime | ||||
20 | Invoiced to Date ![]() | datetime | ||||
21 | Credit Memo Date ![]() | datetime | ||||
22 | Contract Expiration Date ![]() | datetime | ||||
23 | Service Period ![]() | varchar(32) | ||||
24 | Line Value ![]() | decimal(38,38) | ||||
25 | Line Discount _ ![]() | decimal(38,38) | ||||
26 | Line Amount ![]() | decimal(38,38) | ||||
27 | Variant Code ![]() | nvarchar(20) | ||||
28 | Starting Date ![]() | datetime | ||||
29 | New Line ![]() | tinyint | ||||
30 | Credited ![]() | tinyint | ||||
31 | Line Cost ![]() | decimal(38,38) | ||||
32 | Line Discount Amount ![]() | decimal(38,38) | ||||
33 | Profit ![]() | decimal(38,38) | ||||
34 | $systemId ![]() | uniqueidentifier | ||||
35 | $systemCreatedAt ![]() | datetime | ||||
36 | $systemCreatedBy ![]() | uniqueidentifier | ||||
37 | $systemModifiedAt ![]() | datetime | ||||
38 | $systemModifiedBy ![]() | uniqueidentifier |