Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5628
Table Type: Company
Table Name: Insurance
Database Table Name: CRONUS UK Ltd_$Insurance$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 Insurance can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Insurance$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[timestamp]
,[No_]
,[Effective Date]
,[Expiration Date]
,[Policy No_]
,[Annual Premium]
,[Policy Coverage]
,[Insurance Type]
,[Last Date Modified]
,[Insurance Vendor No_]
,[FA Class Code]
,[FA Subclass Code]
,[FA Location Code]
,[Global Dimension 1 Code]
,[Global Dimension 2 Code]
,[Location Code]
,[Blocked]
,[Description]
,[Search Description]
,[No_ Series]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Insurance$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Insurance$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance]
LEFT JOIN
[CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor]
ON
[Insurance].[Insurance Vendor No_] = [Vendor].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Insurance].[Location Code] = [Location].[Code]
Show/hide columns in Insurance table
Column ID | Column Name | Data Type | ||||
---|---|---|---|---|---|---|
1 | timestamp ![]() | timestamp | ||||
2 | No_ ![]() ![]() | nvarchar(40) | ||||
3 | Effective Date ![]() | datetime | ||||
4 | Expiration Date ![]() | datetime | ||||
5 | Policy No_ ![]() | nvarchar(60) | ||||
6 | Annual Premium ![]() | decimal(38,38) | ||||
7 | Policy Coverage ![]() | decimal(38,38) | ||||
8 | Insurance Type ![]() | nvarchar(20) | ||||
9 | Last Date Modified ![]() | datetime | ||||
10 | Insurance Vendor No_ ![]() | nvarchar(40) | ||||
Key to join to the Vendor table.Show/hide example querySELECT
[Insurance].[Insurance Vendor No_]
,[Vendor].[No_]
FROM
[CRONUS UK Ltd_$Insurance$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance]
LEFT JOIN
[CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor]
ON
[Insurance].[Insurance Vendor No_] = [Vendor].[No_] | ||||||
11 | FA Class Code ![]() | nvarchar(20) | ||||
12 | FA Subclass Code ![]() | nvarchar(20) | ||||
13 | FA Location Code ![]() | nvarchar(20) | ||||
14 | Global Dimension 1 Code ![]() | nvarchar(40) | ||||
15 | Global Dimension 2 Code ![]() | nvarchar(40) | ||||
16 | Location Code ![]() | nvarchar(20) | ||||
Key to join to the Location table.Show/hide example querySELECT
[Insurance].[Location Code]
,[Location].[Code]
FROM
[CRONUS UK Ltd_$Insurance$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Insurance]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Insurance].[Location Code] = [Location].[Code] | ||||||
17 | Blocked ![]() | tinyint | ||||
18 | Description ![]() | nvarchar(200) | ||||
19 | Search Description ![]() | nvarchar(200) | ||||
20 | No_ Series ![]() | nvarchar(40) | ||||
21 | $systemId ![]() | uniqueidentifier | ||||
22 | $systemCreatedAt ![]() | datetime | ||||
23 | $systemCreatedBy ![]() | uniqueidentifier | ||||
24 | $systemModifiedAt ![]() | datetime | ||||
25 | $systemModifiedBy ![]() | uniqueidentifier |