Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5968
Table Type: Company
Table Name: Service Contract Template
Database Table Name: CRONUS UK Ltd_$Service Contract Template$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 Service Contract Template can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Description]
,[Invoice Period]
,[Max_ Labor Unit Price]
,[Combine Invoices]
,[Prepaid]
,[Service Zone Code]
,[Language Code]
,[Default Response Time (Hours)]
,[Contract Lines on Invoice]
,[Default Service Period]
,[Invoice after Service]
,[Allow Unbalanced Amounts]
,[Contract Group Code]
,[Service Order Type]
,[Automatic Credit Memos]
,[No_ Series]
,[Price Update Period]
,[Price Inv_ Increase Code]
,[Serv_ Contract Acc_ Gr_ Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Contract Template]
LEFT JOIN
[CRONUS UK Ltd_$Service Zone$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Zone]
ON
[Service Contract Template].[Service Zone Code] = [Service Zone].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language]
ON
[Service Contract Template].[Language Code] = [Language].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Contract Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contract Group]
ON
[Service Contract Template].[Contract Group Code] = [Contract Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Service Order Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Order Type]
ON
[Service Contract Template].[Service Order Type] = [Service Order Type].[Code]
LEFT JOIN
[User] AS [User]
ON
[Service Contract Template].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Service Contract Template].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Service Contract Template table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
2 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
3 | Invoice Period | Invoice Period | Normal | Option | 4 | Invoice Period | int |
Available options are:
| |||||||
4 | Max. Labor Unit Price | Max. Labor Unit Price | Normal | Decimal | 12 | Max_ Labor Unit Price | decimal(38,38) |
5 | Combine Invoices | Combine Invoices | Normal | Boolean | 4 | Combine Invoices | tinyint |
6 | Prepaid | Prepaid | Normal | Boolean | 4 | Prepaid | tinyint |
7 | Service Zone Code | Service Zone Code | Normal | Code | 10 | Service Zone Code | nvarchar(20) |
Key to join to the Service Zone table.Show/hide example querySELECT [Service Contract Template].[Service Zone Code] ,[Service Zone].[Code] FROM [CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Contract Template] LEFT JOIN [CRONUS UK Ltd_$Service Zone$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Zone] ON [Service Contract Template].[Service Zone Code] = [Service Zone].[Code] | |||||||
8 | Language Code | Language Code | Normal | Code | 10 | Language Code | nvarchar(20) |
Key to join to the Language table.Show/hide example querySELECT [Service Contract Template].[Language Code] ,[Language].[Code] FROM [CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Contract Template] LEFT JOIN [CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language] ON [Service Contract Template].[Language Code] = [Language].[Code] | |||||||
9 | Default Response Time (Hours) | Default Response Time (Hours) | Normal | Decimal | 12 | Default Response Time (Hours) | decimal(38,38) |
10 | Contract Lines on Invoice | Contract Lines on Invoice | Normal | Boolean | 4 | Contract Lines on Invoice | tinyint |
11 | Default Service Period | Default Service Period | Normal | DateFormula | 32 | Default Service Period | varchar(32) |
14 | Invoice after Service | Invoice after Service | Normal | Boolean | 4 | Invoice after Service | tinyint |
15 | Allow Unbalanced Amounts | Allow Unbalanced Amounts | Normal | Boolean | 4 | Allow Unbalanced Amounts | tinyint |
16 | Contract Group Code | Contract Group Code | Normal | Code | 10 | Contract Group Code | nvarchar(20) |
Key to join to the Contract Group table.Show/hide example querySELECT [Service Contract Template].[Contract Group Code] ,[Contract Group].[Code] FROM [CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Contract Template] LEFT JOIN [CRONUS UK Ltd_$Contract Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contract Group] ON [Service Contract Template].[Contract Group Code] = [Contract Group].[Code] | |||||||
17 | Service Order Type | Service Order Type | Normal | Code | 10 | Service Order Type | nvarchar(20) |
Key to join to the Service Order Type table.Show/hide example querySELECT [Service Contract Template].[Service Order Type] ,[Service Order Type].[Code] FROM [CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Contract Template] LEFT JOIN [CRONUS UK Ltd_$Service Order Type$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Order Type] ON [Service Contract Template].[Service Order Type] = [Service Order Type].[Code] | |||||||
18 | Automatic Credit Memos | Automatic Credit Memos | Normal | Boolean | 4 | Automatic Credit Memos | tinyint |
20 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Service Contract Template].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Contract Template] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Service Contract Template].[No_ Series] = [No. Series].[Code] | |||||||
21 | Price Update Period | Price Update Period | Normal | DateFormula | 32 | Price Update Period | varchar(32) |
22 | Price Inv. Increase Code | Price Inv. Increase Code | Normal | Code | 20 | Price Inv_ Increase Code | nvarchar(40) |
Key to join to the Standard Text table.Show/hide example querySELECT [Service Contract Template].[Price Inv_ Increase Code] ,[Standard Text].[Code] FROM [CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Contract Template] LEFT JOIN [CRONUS UK Ltd_$Standard Text$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Text] ON [Service Contract Template].[Price Inv_ Increase Code] = [Standard Text].[Code] | |||||||
23 | Serv. Contract Acc. Gr. Code | Serv. Contract Acc. Gr. Code | Normal | Code | 10 | Serv_ Contract Acc_ Gr_ Code | nvarchar(20) |
Key to join to the Service Contract Account Group table.Show/hide example querySELECT [Service Contract Template].[Serv_ Contract Acc_ Gr_ Code] ,[Service Contract Account Group].[Code] FROM [CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Contract Template] LEFT JOIN [CRONUS UK Ltd_$Service Contract Account Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Contract Account Group] ON [Service Contract Template].[Serv_ Contract Acc_ Gr_ Code] = [Service Contract Account Group].[Code] | |||||||
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 [Service Contract Template].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Service Contract Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Contract Template] LEFT JOIN [User] AS [User] ON [Service Contract Template].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |