Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5051
Table Type: Company
Table Name: Contact Alt. Address
Database Table Name: CRONUS UK Ltd_$Contact Alt_ Address$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 Contact Alt. Address can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Contact Alt_ Address$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Contact No_]
,[Code]
,[Company Name]
,[Company Name 2]
,[Address]
,[Address 2]
,[City]
,[Post Code]
,[County]
,[Country_Region Code]
,[Phone No_]
,[Telex No_]
,[Extension No_]
,[Mobile Phone No_]
,[Pager]
,[E-Mail]
,[Home Page]
,[Fax No_]
,[Telex Answer Back]
,[Last Date Modified]
,[Search E-Mail]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Contact Alt_ Address$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Contact Alt_ Address$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact Alt. Address]
LEFT JOIN
[Company] AS [Company]
ON
[Contact Alt. Address].[Company Name] = [Company].[Name]
LEFT JOIN
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
ON
[Contact Alt. Address].[City] = [Post Code].[City]
LEFT JOIN
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
ON
[Contact Alt. Address].[Post Code] = [Post Code].[Code]
LEFT JOIN
[User] AS [User]
ON
[Contact Alt. Address].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Contact Alt. Address].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Contact Alt. Address table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Contact No. | Contact No. | Normal | Code | 20 | Contact No_ | nvarchar(40) |
Key to join to the Contact table.Show/hide example querySELECT [Contact Alt. Address].[Contact No_] ,[Contact].[No_] FROM [CRONUS UK Ltd_$Contact Alt_ Address$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact Alt. Address] LEFT JOIN [CRONUS UK Ltd_$Contact$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact] ON [Contact Alt. Address].[Contact No_] = [Contact].[No_] | |||||||
2 | Code | Code | Normal | Code | 10 | Code | nvarchar(20) |
3 | Company Name | Company Name | Normal | Text | 100 | Company Name | nvarchar(200) |
Key to join to the Company table.Show/hide example querySELECT [Contact Alt. Address].[Company Name] ,[Company].[Name] FROM [CRONUS UK Ltd_$Contact Alt_ Address$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact Alt. Address] LEFT JOIN [Company] AS [Company] ON [Contact Alt. Address].[Company Name] = [Company].[Name] | |||||||
4 | Company Name 2 | Company Name 2 | Normal | Text | 50 | Company Name 2 | nvarchar(100) |
5 | Address | Address | Normal | Text | 100 | Address | nvarchar(200) |
6 | Address 2 | Address 2 | Normal | Text | 50 | Address 2 | nvarchar(100) |
7 | City | City | Normal | Text | 30 | City | nvarchar(60) |
Key to join to the Post Code table.Show/hide example querySELECT [Contact Alt. Address].[City] ,[Post Code].[City] FROM [CRONUS UK Ltd_$Contact Alt_ Address$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact Alt. Address] LEFT JOIN [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code] ON [Contact Alt. Address].[City] = [Post Code].[City] | |||||||
8 | Post Code | ZIP Code | Normal | Code | 20 | Post Code | nvarchar(40) |
Key to join to the Post Code table.Show/hide example querySELECT [Contact Alt. Address].[Post Code] ,[Post Code].[Code] FROM [CRONUS UK Ltd_$Contact Alt_ Address$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact Alt. Address] LEFT JOIN [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code] ON [Contact Alt. Address].[Post Code] = [Post Code].[Code] | |||||||
9 | County | State | Normal | Text | 30 | County | nvarchar(60) |
10 | Country/Region Code | Country/Region Code | Normal | Code | 10 | Country_Region Code | nvarchar(20) |
12 | Phone No. | Phone No. | Normal | Text | 30 | Phone No_ | nvarchar(60) |
13 | Telex No. | Telex No. | Normal | Text | 20 | Telex No_ | nvarchar(40) |
14 | Extension No. | Extension No. | Normal | Text | 30 | Extension No_ | nvarchar(60) |
15 | Mobile Phone No. | Mobile Phone No. | Normal | Text | 30 | Mobile Phone No_ | nvarchar(60) |
16 | Pager | Pager | Normal | Text | 30 | Pager | nvarchar(60) |
17 | Normal | Text | 80 | nvarchar(160) | |||
18 | Home Page | Home Page | Normal | Text | 80 | Home Page | nvarchar(160) |
19 | Fax No. | Fax No. | Normal | Text | 30 | Fax No_ | nvarchar(60) |
20 | Telex Answer Back | Telex Answer Back | Normal | Text | 20 | Telex Answer Back | nvarchar(40) |
21 | Last Date Modified | Last Date Modified | Normal | Date | 4 | Last Date Modified | datetime |
22 | Search E-Mail | Search Email | Normal | Code | 80 | Search E-Mail | nvarchar(160) |
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 [Contact Alt. Address].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Contact Alt_ Address$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Contact Alt. Address] LEFT JOIN [User] AS [User] ON [Contact Alt. Address].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |