Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1384
Table Type: Company
Table Name: Employee Templ.
Database Table Name: CRONUS UK Ltd_$Employee Templ_$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 Employee Templ. can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Code]
,[Description]
,[City]
,[Post Code]
,[County]
,[Gender]
,[Country_Region Code]
,[Manager No_]
,[Emplymt_ Contract Code]
,[Statistics Group Code]
,[Global Dimension 1 Code]
,[Global Dimension 2 Code]
,[Company E-Mail]
,[No_ Series]
,[Employee Posting Group]
,[Application Method]
,[Cost Center Code]
,[Cost Object Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.]
LEFT JOIN
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
ON
[Employee Templ.].[City] = [Post Code].[City]
LEFT JOIN
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
ON
[Employee Templ.].[Post Code] = [Post Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Employee Statistics Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Statistics Group]
ON
[Employee Templ.].[Statistics Group Code] = [Employee Statistics Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Employee Templ.].[Global Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Employee Templ.].[Global Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Employee Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Posting Group]
ON
[Employee Templ.].[Employee Posting Group] = [Employee Posting Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center]
ON
[Employee Templ.].[Cost Center Code] = [Cost Center].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Object]
ON
[Employee Templ.].[Cost Object Code] = [Cost Object].[Code]
LEFT JOIN
[User] AS [User]
ON
[Employee Templ.].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Employee Templ.].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Employee Templ. table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Code | Code | Normal | Code | 20 | Code | nvarchar(40) |
2 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
10 | City | City | Normal | Text | 30 | City | nvarchar(60) |
Key to join to the Post Code table.Show/hide example querySELECT [Employee Templ.].[City] ,[Post Code].[City] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code] ON [Employee Templ.].[City] = [Post Code].[City] | |||||||
11 | Post Code | ZIP Code | Normal | Code | 20 | Post Code | nvarchar(40) |
Key to join to the Post Code table.Show/hide example querySELECT [Employee Templ.].[Post Code] ,[Post Code].[Code] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code] ON [Employee Templ.].[Post Code] = [Post Code].[Code] | |||||||
12 | County | State | Normal | Text | 30 | County | nvarchar(60) |
24 | Gender | Gender | Normal | Option | 4 | Gender | int |
Available options are:
| |||||||
25 | Country/Region Code | Country/Region Code | Normal | Code | 10 | Country_Region Code | nvarchar(20) |
26 | Manager No. | Manager No. | Normal | Code | 20 | Manager No_ | nvarchar(40) |
Key to join to the Employee table.Show/hide example querySELECT [Employee Templ.].[Manager No_] ,[Employee].[No_] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$Employee$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee] ON [Employee Templ.].[Manager No_] = [Employee].[No_] | |||||||
27 | Emplymt. Contract Code | Emplymt. Contract Code | Normal | Code | 10 | Emplymt_ Contract Code | nvarchar(20) |
Key to join to the Employment Contract table.Show/hide example querySELECT [Employee Templ.].[Emplymt_ Contract Code] ,[Employment Contract].[Code] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$Employment Contract$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employment Contract] ON [Employee Templ.].[Emplymt_ Contract Code] = [Employment Contract].[Code] | |||||||
28 | Statistics Group Code | Statistics Group Code | Normal | Code | 10 | Statistics Group Code | nvarchar(20) |
Key to join to the Employee Statistics Group table.Show/hide example querySELECT [Employee Templ.].[Statistics Group Code] ,[Employee Statistics Group].[Code] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$Employee Statistics Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Statistics Group] ON [Employee Templ.].[Statistics Group Code] = [Employee Statistics Group].[Code] | |||||||
36 | Global Dimension 1 Code | Global Dimension 1 Code | Normal | Code | 20 | Global Dimension 1 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Employee Templ.].[Global Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Employee Templ.].[Global Dimension 1 Code] = [Dimension].[Code] | |||||||
37 | Global Dimension 2 Code | Global Dimension 2 Code | Normal | Code | 20 | Global Dimension 2 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Employee Templ.].[Global Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Employee Templ.].[Global Dimension 2 Code] = [Dimension].[Code] | |||||||
50 | Company E-Mail | Company Email | Normal | Text | 80 | Company E-Mail | nvarchar(160) |
53 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Employee Templ.].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Employee Templ.].[No_ Series] = [No. Series].[Code] | |||||||
55 | Employee Posting Group | Employee Posting Group | Normal | Code | 20 | Employee Posting Group | nvarchar(40) |
Key to join to the Employee Posting Group table.Show/hide example querySELECT [Employee Templ.].[Employee Posting Group] ,[Employee Posting Group].[Code] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$Employee Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Posting Group] ON [Employee Templ.].[Employee Posting Group] = [Employee Posting Group].[Code] | |||||||
80 | Application Method | Application Method | Normal | Option | 4 | Application Method | int |
Available options are:
| |||||||
1100 | Cost Center Code | Cost Center Code | Normal | Code | 20 | Cost Center Code | nvarchar(40) |
Key to join to the Cost Center table.Show/hide example querySELECT [Employee Templ.].[Cost Center Code] ,[Cost Center].[Code] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$Cost Center$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Center] ON [Employee Templ.].[Cost Center Code] = [Cost Center].[Code] | |||||||
1101 | Cost Object Code | Cost Object Code | Normal | Code | 20 | Cost Object Code | nvarchar(40) |
Key to join to the Cost Object table.Show/hide example querySELECT [Employee Templ.].[Cost Object Code] ,[Cost Object].[Code] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [CRONUS UK Ltd_$Cost Object$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Cost Object] ON [Employee Templ.].[Cost Object Code] = [Cost Object].[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 [Employee Templ.].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Employee Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Employee Templ.] LEFT JOIN [User] AS [User] ON [Employee Templ.].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |