Union

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5209

Table Type: Company

Table Name: Union
Database Table Name: CRONUS UK Ltd_$Union$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 5209

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 Union can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Union$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Code]
   ,[Name]
   ,[Address]
   ,[Post Code]
   ,[City]
   ,[Phone No_]
   ,[Name 2]
   ,[Address 2]
   ,[County]
   ,[Fax No_]
   ,[E-Mail]
   ,[Home Page]
   ,[Country_Region Code]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Union$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [CRONUS UK Ltd_$Union$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Union]
LEFT JOIN
   [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
      ON
         [Union].[Post Code] = [Post Code].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
      ON
         [Union].[City] = [Post Code].[City]
LEFT JOIN
   [User] AS [User]
      ON
         [Union].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Union].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Union table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Code Primary Key SearchCodeNormalCode10Codenvarchar(20)
2Name SearchNameNormalText100Namenvarchar(200)
3Address SearchAddressNormalText100Addressnvarchar(200)
4Post Code SearchZIP CodeNormalCode20Post Codenvarchar(40)
Key to join to the Post Code table.

Show/hide example query

SELECT
       [Union].[Post Code]
       ,[Post Code].[Code]
FROM
       [CRONUS UK Ltd_$Union$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Union]
LEFT JOIN
       [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
              ON
                     [Union].[Post Code] = [Post Code].[Code]
5City SearchCityNormalText30Citynvarchar(60)
Key to join to the Post Code table.

Show/hide example query

SELECT
       [Union].[City]
       ,[Post Code].[City]
FROM
       [CRONUS UK Ltd_$Union$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Union]
LEFT JOIN
       [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
              ON
                     [Union].[City] = [Post Code].[City]
6Phone No. SearchPhone No.NormalText30Phone No_nvarchar(60)
7No. of Members Employed SearchNo. of Members EmployedFlowFieldInteger4
8Name 2 SearchName 2NormalText50Name 2nvarchar(100)
9Address 2 SearchAddress 2NormalText50Address 2nvarchar(100)
10County SearchStateNormalText30Countynvarchar(60)
11Fax No. SearchFax No.NormalText30Fax No_nvarchar(60)
12E-Mail SearchEmailNormalText80E-Mailnvarchar(160)
13Home Page SearchHome PageNormalText80Home Pagenvarchar(160)
14Country/Region Code SearchCountry/Region CodeNormalCode10Country_Region Codenvarchar(20)
Key to join to the Country/Region table.

Show/hide example query

SELECT
       [Union].[Country_Region Code]
       ,[Country/Region].[Code]
FROM
       [CRONUS UK Ltd_$Union$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Union]
LEFT JOIN
       [CRONUS UK Ltd_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country/Region]
              ON
                     [Union].[Country_Region Code] = [Country/Region].[Code]
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [Union].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Union$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Union]
LEFT JOIN
       [User] AS [User]
              ON
                     [Union].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [Union].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Union$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Union]
LEFT JOIN
       [User] AS [User]
              ON
                     [Union].[$systemModifiedBy] = [User].[User Security ID]

Show/hide tables related from Union table

Leave a Reply

Your email address will not be published. Required fields are marked *