Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/225
Table Type: Company
Table Name: Post Code
Database Table Name: CRONUS UK Ltd_$Post Code$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 Post Code can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[timestamp]
,[Code]
,[City]
,[Search City]
,[Country_Region Code]
,[County]
,[Time Zone]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
LEFT JOIN
[CRONUS UK Ltd_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country_Region]
ON
[Post Code].[Country_Region Code] = [Country_Region].[Code]
Show/hide columns in Post Code table
Column ID | Column Name | Data Type | ||||
---|---|---|---|---|---|---|
1 | timestamp ![]() | timestamp | ||||
2 | Code ![]() ![]() | nvarchar(40) | ||||
3 | City ![]() ![]() | nvarchar(60) | ||||
4 | Search City ![]() | nvarchar(60) | ||||
5 | Country_Region Code ![]() | nvarchar(20) | ||||
Key to join to the Country_Region table.Show/hide example querySELECT
[Post Code].[Country_Region Code]
,[Country_Region].[Code]
FROM
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
LEFT JOIN
[CRONUS UK Ltd_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country_Region]
ON
[Post Code].[Country_Region Code] = [Country_Region].[Code] | ||||||
6 | County ![]() | nvarchar(60) | ||||
7 | Time Zone ![]() | nvarchar(360) | ||||
8 | $systemId ![]() | uniqueidentifier | ||||
9 | $systemCreatedAt ![]() | datetime | ||||
10 | $systemCreatedBy ![]() | uniqueidentifier | ||||
11 | $systemModifiedAt ![]() | datetime | ||||
12 | $systemModifiedBy ![]() | uniqueidentifier |