Standard Sales Line

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

Table Type: Company

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

Table Number: 171

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 Standard Sales Line can be queried.

Show/hide an example select of all columns

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

Show/hide an example select of all columns by name

SELECT
   [Standard Sales Code]
   ,[Line No_]
   ,[Type]
   ,[No_]
   ,[Description]
   ,[Quantity]
   ,[Amount Excl_ VAT]
   ,[Unit of Measure Code]
   ,[Shortcut Dimension 1 Code]
   ,[Shortcut Dimension 2 Code]
   ,[Variant Code]
   ,[Dimension Set ID]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
LEFT JOIN
   [CRONUS UK Ltd_$Standard Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Code]
      ON
         [Standard Sales Line].[Standard Sales Code] = [Standard Sales Code].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
      ON
         [Standard Sales Line].[Shortcut Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
      ON
         [Standard Sales Line].[Shortcut Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
      ON
         [Standard Sales Line].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
      ON
         [Standard Sales Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Standard Sales Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Standard Sales Line].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Standard Sales Line table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Standard Sales Code SearchStandard Sales CodeNormalCode10Standard Sales Codenvarchar(20)
Key to join to the Standard Sales Code table.

Show/hide example query

SELECT
	       [Standard Sales Line].[Standard Sales Code]
	       ,[Standard Sales Code].[Code]
	FROM
	       [CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Standard Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Code]
	              ON
	                     [Standard Sales Line].[Standard Sales Code] = [Standard Sales Code].[Code]
2Line No. Primary Key SearchLine No.NormalInteger4Line No_int
3Type Primary Key SearchTypeNormalOption4Typeint
Available options are:
  • ” “
  • “G/L Account”
  • “Item”
  • “Resource”
  • “Fixed Asset”
  • “Charge (Item)”
  • “Allocation Account”
4No. SearchNo.NormalCode20No_nvarchar(40)
5Description SearchDescriptionNormalText100Descriptionnvarchar(200)
6Quantity SearchQuantityNormalDecimal12Quantitydecimal(38,38)
7Amount Excl. VAT SearchAmount Excl. TaxNormalDecimal12Amount Excl_ VATdecimal(38,38)
8Unit of Measure Code SearchUnit of Measure CodeNormalCode10Unit of Measure Codenvarchar(20)
9Shortcut Dimension 1 Code SearchShortcut Dimension 1 CodeNormalCode20Shortcut Dimension 1 Codenvarchar(40)
Key to join to the Dimension table.

Show/hide example query

SELECT
	       [Standard Sales Line].[Shortcut Dimension 1 Code]
	       ,[Dimension].[Code]
	FROM
	       [CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
	              ON
	                     [Standard Sales Line].[Shortcut Dimension 1 Code] = [Dimension].[Code]
10Shortcut Dimension 2 Code SearchShortcut Dimension 2 CodeNormalCode20Shortcut Dimension 2 Codenvarchar(40)
Key to join to the Dimension table.

Show/hide example query

SELECT
	       [Standard Sales Line].[Shortcut Dimension 2 Code]
	       ,[Dimension].[Code]
	FROM
	       [CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
	              ON
	                     [Standard Sales Line].[Shortcut Dimension 2 Code] = [Dimension].[Code]
11Variant Code SearchVariant CodeNormalCode10Variant Codenvarchar(20)
Key to join to the Item Variant table.

Show/hide example query

SELECT
	       [Standard Sales Line].[Variant Code]
	       ,[Item Variant].[Code]
	FROM
	       [CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
	              ON
	                     [Standard Sales Line].[Variant Code] = [Item Variant].[Code]
480Dimension Set ID SearchDimension Set IDNormalInteger4Dimension Set IDint
Key to join to the Dimension Set Entry table.

Show/hide example query

SELECT
	       [Standard Sales Line].[Dimension Set ID]
	       ,[Dimension Set Entry].[Dimension Set ID]
	FROM
	       [CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
	LEFT JOIN
	       [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
	              ON
	                     [Standard Sales Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
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
	       [Standard Sales Line].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Standard Sales Line].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Show/hide tables related from Standard Sales Line table

Leave a Reply

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