Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5076
Table Type: Company
Table Name: Segment Header
Database Table Name: CRONUS UK Ltd_$Segment Header$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 Segment Header can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Description]
,[Campaign No_]
,[Salesperson Code]
,[Correspondence Type (Default)]
,[Interaction Template Code]
,[Unit Cost (LCY)]
,[Unit Duration (Min_)]
,[Date]
,[Campaign Target]
,[Information Flow]
,[Initiated By]
,[No_ Series]
,[Campaign Response]
,[Language Code (Default)]
,[Interaction Group Code]
,[Send Word Docs_ as Attmt_]
,[Ignore Contact Corres_ Type]
,[Subject (Default)]
,[Word Template Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header]
LEFT JOIN
[CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson/Purchaser]
ON
[Segment Header].[Salesperson Code] = [Salesperson/Purchaser].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Interaction Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Interaction Template]
ON
[Segment Header].[Interaction Template Code] = [Interaction Template].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language]
ON
[Segment Header].[Language Code (Default)] = [Language].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Interaction Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Interaction Group]
ON
[Segment Header].[Interaction Group Code] = [Interaction Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Word Template$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Word Template]
ON
[Segment Header].[Word Template Code] = [Word Template].[Code]
LEFT JOIN
[User] AS [User]
ON
[Segment Header].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Segment Header].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Segment Header 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 | Campaign No. | Campaign No. | Normal | Code | 20 | Campaign No_ | nvarchar(40) |
Key to join to the Campaign table.Show/hide example querySELECT [Segment Header].[Campaign No_] ,[Campaign].[No_] FROM [CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header] LEFT JOIN [CRONUS UK Ltd_$Campaign$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Campaign] ON [Segment Header].[Campaign No_] = [Campaign].[No_] | |||||||
4 | Salesperson Code | Salesperson Code | Normal | Code | 20 | Salesperson Code | nvarchar(40) |
Key to join to the Salesperson/Purchaser table.Show/hide example querySELECT [Segment Header].[Salesperson Code] ,[Salesperson/Purchaser].[Code] FROM [CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header] LEFT JOIN [CRONUS UK Ltd_$Salesperson_Purchaser$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Salesperson/Purchaser] ON [Segment Header].[Salesperson Code] = [Salesperson/Purchaser].[Code] | |||||||
5 | Correspondence Type (Default) | Correspondence Type (Default) | Normal | Option | 4 | Correspondence Type (Default) | int |
Available options are:
| |||||||
6 | Interaction Template Code | Interaction Template Code | Normal | Code | 10 | Interaction Template Code | nvarchar(20) |
Key to join to the Interaction Template table.Show/hide example querySELECT [Segment Header].[Interaction Template Code] ,[Interaction Template].[Code] FROM [CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header] LEFT JOIN [CRONUS UK Ltd_$Interaction Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Interaction Template] ON [Segment Header].[Interaction Template Code] = [Interaction Template].[Code] | |||||||
7 | Unit Cost (LCY) | Unit Cost ($) | Normal | Decimal | 12 | Unit Cost (LCY) | decimal(38,38) |
8 | Unit Duration (Min.) | Unit Duration (Min.) | Normal | Decimal | 12 | Unit Duration (Min_) | decimal(38,38) |
9 | Attachment No. | Attachment No. | FlowField | Integer | 4 | ||
Key to join to the Attachment table.Show/hide example querySELECT [Segment Header].[] ,[Attachment].[No_] FROM [CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header] LEFT JOIN [CRONUS UK Ltd_$Attachment$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Attachment] ON [Segment Header].[] = [Attachment].[No_] | |||||||
10 | Date | Date | Normal | Date | 4 | Date | datetime |
11 | Campaign Target | Campaign Target | Normal | Boolean | 4 | Campaign Target | tinyint |
12 | Information Flow | Information Flow | Normal | Option | 4 | Information Flow | int |
Available options are:
| |||||||
13 | Initiated By | Initiated By | Normal | Option | 4 | Initiated By | int |
Available options are:
| |||||||
14 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Segment Header].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Segment Header].[No_ Series] = [No. Series].[Code] | |||||||
15 | Campaign Response | Campaign Response | Normal | Boolean | 4 | Campaign Response | tinyint |
16 | No. of Lines | No. of Lines | FlowField | Integer | 4 | ||
17 | Cost (LCY) | Cost ($) | FlowField | Decimal | 12 | ||
18 | Duration (Min.) | Duration (Min.) | FlowField | Decimal | 12 | ||
19 | Language Code (Default) | Language Code (Default) | Normal | Code | 10 | Language Code (Default) | nvarchar(20) |
Key to join to the Language table.Show/hide example querySELECT [Segment Header].[Language Code (Default)] ,[Language].[Code] FROM [CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header] LEFT JOIN [CRONUS UK Ltd_$Language$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Language] ON [Segment Header].[Language Code (Default)] = [Language].[Code] | |||||||
20 | Interaction Group Code | Interaction Group Code | Normal | Code | 10 | Interaction Group Code | nvarchar(20) |
Key to join to the Interaction Group table.Show/hide example querySELECT [Segment Header].[Interaction Group Code] ,[Interaction Group].[Code] FROM [CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header] LEFT JOIN [CRONUS UK Ltd_$Interaction Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Interaction Group] ON [Segment Header].[Interaction Group Code] = [Interaction Group].[Code] | |||||||
21 | No. of Criteria Actions | No. of Criteria Actions | FlowField | Integer | 4 | ||
22 | Send Word Docs. as Attmt. | Send Word Docs. as Attmt. | Normal | Boolean | 4 | Send Word Docs_ as Attmt_ | tinyint |
23 | Ignore Contact Corres. Type | Ignore Contact Corres. Type | Normal | Boolean | 4 | Ignore Contact Corres_ Type | tinyint |
24 | Subject (Default) | Subject (Default) | Normal | Text | 100 | Subject (Default) | nvarchar(200) |
25 | Campaign Description | Campaign Description | FlowField | Text | 100 | ||
26 | Word Template Code | Word Template Code | Normal | Code | 30 | Word Template Code | nvarchar(60) |
Key to join to the Word Template table.Show/hide example querySELECT [Segment Header].[Word Template Code] ,[Word Template].[Code] FROM [CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header] LEFT JOIN [CRONUS UK Ltd_$Word Template$63ca2fa4-4f03-4f2b-a480-172fef340d3f] AS [Word Template] ON [Segment Header].[Word Template Code] = [Word Template].[Code] | |||||||
27 | Modified Word Template | Modified Word Template | FlowField | Integer | 4 | ||
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 [Segment Header].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Segment Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Segment Header] LEFT JOIN [User] AS [User] ON [Segment Header].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |