Designed Query Column

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

Table Type: System

Table Name: Designed Query Column
Database Table Name: Designed Query Column

Table Number: 2000000216

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 Designed Query Column can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [Designed Query Column]

Show/hide an example select of all columns by name

SELECT
   [Query ID]
   ,[Data Item]
   ,[Order]
   ,[Name]
   ,[Description]
   ,[Source Reference]
   ,[Column Type]
   ,[Method]
   ,[Invert Sign]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [Designed Query Column]

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

SELECT
   *
FROM
   [Designed Query Column] AS [Designed Query Column]
LEFT JOIN
   [User] AS [User]
      ON
         [Designed Query Column].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Designed Query Column].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Designed Query Column table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Query ID SearchQuery IDNormalBigInteger8Query IDbigint
2Data Item Primary Key SearchData ItemNormalText120Data Itemnvarchar(240)
3Order Primary Key SearchOrderNormalInteger4Orderint
4Name Primary Key SearchNameNormalText120Namenvarchar(240)
5Description SearchDescriptionNormalText250Descriptionnvarchar(500)
6Source Reference SearchSource ReferenceNormalText30Source Referencenvarchar(60)
7Column Type SearchColumn TypeNormalOption4Column Typeint
Available options are:
  • “Normal”
  • “Aggregating”
  • “Count”
8Method SearchMethodNormalOption4Methodint
Available options are:
  • “Average”
  • “Count”
  • “Max”
  • “Min”
  • “Sum”
  • “Year”
  • “Month”
  • “Day”
9Invert Sign SearchInvert SignNormalBoolean4Invert Signtinyint
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
	       [Designed Query Column].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [Designed Query Column] AS [Designed Query Column]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Designed Query Column].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

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