Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/4048
Table Type: Company
Table Name: GP Customer Address
Database Table Name:
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 GP Customer Address can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[]
Show/hide an example select of all columns by name
SELECT
FROM
[]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[] AS [GP Customer Address]
LEFT JOIN
[CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
ON
[GP Customer Address].[CUSTNMBR] = [Customer].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code]
ON
[GP Customer Address].[City] = [Post Code].[City]
LEFT JOIN
[User] AS [User]
ON
[GP Customer Address].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[GP Customer Address].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in GP Customer Address table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | CUSTNMBR | CUSTNMBR | Normal | Text | 15 | ||
Key to join to the Customer table.Show/hide example querySELECT [GP Customer Address].[] ,[Customer].[No_] FROM [] AS [GP Customer Address] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [GP Customer Address].[] = [Customer].[No_] | |||||||
2 | ADRSCODE | ADRSCODE | Normal | Text | 15 | ||
5 | SHIPMTHD | SHIPMTHD | Normal | Text | 15 | ||
6 | TAXSCHID | TAXSCHID | Normal | Text | 15 | ||
7 | CNTCPRSN | CNTCPRSN | Normal | Text | 61 | ||
8 | ADDRESS1 | ADDRESS1 | Normal | Text | 61 | ||
9 | ADDRESS2 | ADDRESS2 | Normal | Text | 61 | ||
12 | CITY | CITY | Normal | Text | 35 | ||
Key to join to the Post Code table.Show/hide example querySELECT [GP Customer Address].[] ,[Post Code].[City] FROM [] AS [GP Customer Address] LEFT JOIN [CRONUS UK Ltd_$Post Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Post Code] ON [GP Customer Address].[] = [Post Code].[City] | |||||||
13 | STATE | STATE | Normal | Text | 29 | ||
14 | ZIP | ZIP | Normal | Text | 11 | ||
15 | PHONE1 | PHONE1 | Normal | Text | 21 | ||
18 | FAX | FAX | Normal | Text | 21 | ||
26 | LOCNCODE | LOCNCODE | Normal | Text | 11 | ||
2000000000 | $systemId | System ID | Normal | GUID | 16 | ||
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | ||
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | ||
Key to join to the User table.Show/hide example querySELECT [GP Customer Address].[] ,[User].[User Security ID] FROM [] AS [GP Customer Address] LEFT JOIN [User] AS [User] ON [GP Customer Address].[] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | ||
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 |