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
[Contract Type]
,[Contract No_]
,[Line 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]
,[Entry No_]
,[$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_$Service Item Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item Group]
ON
[Filed Contract Line].[Service Item Group Code] = [Service Item Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Ship-to Address$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Ship-to Address]
ON
[Filed Contract Line].[Ship-to Code] = [Ship-to Address].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Filed Contract Line].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[User] AS [User]
ON
[Filed Contract Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Filed Contract Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Filed Contract Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Contract Type | Contract Type | Normal | Option | 4 | Contract Type | int |
Available options are:
| |||||||
2 | Contract No. | Contract No. | Normal | Code | 20 | Contract No_ | nvarchar(40) |
3 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
4 | Contract Status | Contract Status | Normal | Option | 4 | Contract Status | int |
Available options are:
| |||||||
5 | Service Item No. | Service Item No. | Normal | Code | 20 | Service Item No_ | nvarchar(40) |
Key to join to the Service Item table.Show/hide example querySELECT [Filed Contract Line].[Service Item No_] ,[Service Item].[No_] FROM [CRONUS UK Ltd_$Filed Contract Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Filed Contract Line] LEFT JOIN [CRONUS UK Ltd_$Service Item$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item] ON [Filed Contract Line].[Service Item No_] = [Service Item].[No_] | |||||||
6 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
7 | Serial No. | Serial No. | Normal | Code | 50 | Serial No_ | nvarchar(100) |
8 | Service Item Group Code | Service Item Group Code | Normal | Code | 10 | Service Item Group Code | nvarchar(20) |
Key to join to the Service Item Group table.Show/hide example querySELECT [Filed Contract Line].[Service Item Group Code] ,[Service Item Group].[Code] FROM [CRONUS UK Ltd_$Filed Contract Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Filed Contract Line] LEFT JOIN [CRONUS UK Ltd_$Service Item Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item Group] ON [Filed Contract Line].[Service Item Group Code] = [Service Item Group].[Code] | |||||||
9 | Customer No. | Customer No. | Normal | Code | 20 | 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_] | |||||||
10 | Ship-to Code | Ship-to Code | Normal | Code | 10 | Ship-to Code | nvarchar(20) |
Key to join to the Ship-to Address table.Show/hide example querySELECT [Filed Contract Line].[Ship-to Code] ,[Ship-to Address].[Code] FROM [CRONUS UK Ltd_$Filed Contract Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Filed Contract Line] LEFT JOIN [CRONUS UK Ltd_$Ship-to Address$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Ship-to Address] ON [Filed Contract Line].[Ship-to Code] = [Ship-to Address].[Code] | |||||||
11 | Item No. | Item No. | Normal | Code | 20 | 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$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Filed Contract Line].[Item No_] = [Item].[No_] | |||||||
12 | Unit of Measure Code | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
13 | Response Time (Hours) | Response Time (Hours) | Normal | Decimal | 12 | Response Time (Hours) | decimal(38,38) |
14 | Last Planned Service Date | Last Planned Service Date | Normal | Date | 4 | Last Planned Service Date | datetime |
15 | Next Planned Service Date | Next Planned Service Date | Normal | Date | 4 | Next Planned Service Date | datetime |
16 | Last Service Date | Last Service Date | Normal | Date | 4 | Last Service Date | datetime |
17 | Last Preventive Maint. Date | Last Preventive Maint. Date | Normal | Date | 4 | Last Preventive Maint_ Date | datetime |
18 | Invoiced to Date | Invoiced to Date | Normal | Date | 4 | Invoiced to Date | datetime |
19 | Credit Memo Date | Credit Memo Date | Normal | Date | 4 | Credit Memo Date | datetime |
20 | Contract Expiration Date | Contract Expiration Date | Normal | Date | 4 | Contract Expiration Date | datetime |
21 | Service Period | Service Period | Normal | DateFormula | 32 | Service Period | varchar(32) |
22 | Line Value | Line Value | Normal | Decimal | 12 | Line Value | decimal(38,38) |
23 | Line Discount % | Line Discount % | Normal | Decimal | 12 | Line Discount _ | decimal(38,38) |
24 | Line Amount | Line Amount | Normal | Decimal | 12 | Line Amount | decimal(38,38) |
28 | Variant Code | Variant Code | Normal | Code | 10 | Variant Code | nvarchar(20) |
Key to join to the Item Variant table.Show/hide example querySELECT [Filed Contract Line].[Variant Code] ,[Item Variant].[Code] FROM [CRONUS UK Ltd_$Filed Contract Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Filed Contract Line] LEFT JOIN [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant] ON [Filed Contract Line].[Variant Code] = [Item Variant].[Code] | |||||||
29 | Starting Date | Starting Date | Normal | Date | 4 | Starting Date | datetime |
30 | New Line | New Line | Normal | Boolean | 4 | New Line | tinyint |
31 | Credited | Credited | Normal | Boolean | 4 | Credited | tinyint |
32 | Line Cost | Line Cost | Normal | Decimal | 12 | Line Cost | decimal(38,38) |
33 | Line Discount Amount | Line Discount Amount | Normal | Decimal | 12 | Line Discount Amount | decimal(38,38) |
34 | Profit | Profit | Normal | Decimal | 12 | Profit | decimal(38,38) |
100 | Entry No. | Entry No. | Normal | Integer | 4 | Entry No_ | int |
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 [Filed Contract Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Filed Contract Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Filed Contract Line] LEFT JOIN [User] AS [User] ON [Filed Contract Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |