GP Segment Name

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

Table Type: System

Table Name: GP Segment Name
Database Table Name:

Table Number: 4040

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 Segment Name 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 Segment Name]
LEFT JOIN
   [Company] AS [Company]
      ON
         [GP Segment Name].[Company Name] = [Company].[Name]
LEFT JOIN
   [User] AS [User]
      ON
         [GP Segment Name].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [GP Segment Name].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in GP Segment Name table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Company Name SearchCompany NameNormalText50
Key to join to the Company table.

Show/hide example query

SELECT
	       [GP Segment Name].[]
	       ,[Company].[Name]
	FROM
	       [] AS [GP Segment Name]
	LEFT JOIN
	       [Company] AS [Company]
	              ON
	                     [GP Segment Name].[] = [Company].[Name]
2Segment Number Primary Key SearchSegment NumberNormalInteger4
3Segment Name SearchSegment NameNormalText30
2000000000$systemId Primary Key SearchSystem IDNormalGUID16
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8
2000000002SystemCreatedBy SearchCreated ByNormalGUID16
Key to join to the User table.

Show/hide example query

SELECT
	       [GP Segment Name].[]
	       ,[User].[User Security ID]
	FROM
	       [] AS [GP Segment Name]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [GP Segment Name].[] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8
2000000004SystemModifiedBy SearchModified ByNormalGUID16

Leave a Reply

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