Purchase Line Discount

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

Table Type: Company

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

Table Number: 7014

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 Purchase Line Discount can be queried.

Show/hide an example select of all columns

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

Show/hide an example select of all columns by name

SELECT
   [Item No_]
   ,[Vendor No_]
   ,[Currency Code]
   ,[Starting Date]
   ,[Line Discount _]
   ,[Minimum Quantity]
   ,[Ending Date]
   ,[Unit of Measure Code]
   ,[Variant Code]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Purchase Line Discount$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$Purchase Line Discount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Line Discount]
LEFT JOIN
   [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
      ON
         [Purchase Line Discount].[Currency Code] = [Currency].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
      ON
         [Purchase Line Discount].[Ending Date] = [Inventory Period].[Ending Date]
LEFT JOIN
   [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
      ON
         [Purchase Line Discount].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Purchase Line Discount].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Purchase Line Discount].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Purchase Line Discount table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Item No. Primary Key SearchItem No.NormalCode20Item No_nvarchar(40)
Key to join to the Item table.

Show/hide example query

SELECT
       [Purchase Line Discount].[Item No_]
       ,[Item].[No_]
FROM
       [CRONUS UK Ltd_$Purchase Line Discount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Line Discount]
LEFT JOIN
       [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item]
              ON
                     [Purchase Line Discount].[Item No_] = [Item].[No_]
2Vendor No. Primary Key SearchVendor No.NormalCode20Vendor No_nvarchar(40)
Key to join to the Vendor table.

Show/hide example query

SELECT
       [Purchase Line Discount].[Vendor No_]
       ,[Vendor].[No_]
FROM
       [CRONUS UK Ltd_$Purchase Line Discount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Line Discount]
LEFT JOIN
       [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor]
              ON
                     [Purchase Line Discount].[Vendor No_] = [Vendor].[No_]
3Currency Code Primary Key SearchCurrency CodeNormalCode10Currency Codenvarchar(20)
Key to join to the Currency table.

Show/hide example query

SELECT
       [Purchase Line Discount].[Currency Code]
       ,[Currency].[Code]
FROM
       [CRONUS UK Ltd_$Purchase Line Discount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Line Discount]
LEFT JOIN
       [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
              ON
                     [Purchase Line Discount].[Currency Code] = [Currency].[Code]
4Starting Date Primary Key SearchStarting DateNormalDate4Starting Datedatetime
5Line Discount % SearchLine Discount %NormalDecimal12Line Discount _decimal(38,38)
11Minimum Quantity Primary Key SearchMinimum QuantityNormalDecimal12Minimum Quantitydecimal(38,38)
15Ending Date SearchEnding DateNormalDate4Ending Datedatetime
Key to join to the Inventory Period table.

Show/hide example query

SELECT
       [Purchase Line Discount].[Ending Date]
       ,[Inventory Period].[Ending Date]
FROM
       [CRONUS UK Ltd_$Purchase Line Discount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Line Discount]
LEFT JOIN
       [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
              ON
                     [Purchase Line Discount].[Ending Date] = [Inventory Period].[Ending Date]
5400Unit of Measure Code Primary Key SearchUnit of Measure CodeNormalCode10Unit of Measure Codenvarchar(20)
5700Variant Code Primary Key SearchVariant CodeNormalCode10Variant Codenvarchar(20)
Key to join to the Item Variant table.

Show/hide example query

SELECT
       [Purchase Line Discount].[Variant Code]
       ,[Item Variant].[Code]
FROM
       [CRONUS UK Ltd_$Purchase Line Discount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Line Discount]
LEFT JOIN
       [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
              ON
                     [Purchase Line Discount].[Variant Code] = [Item Variant].[Code]
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
       [Purchase Line Discount].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Purchase Line Discount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Line Discount]
LEFT JOIN
       [User] AS [User]
              ON
                     [Purchase Line Discount].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [Purchase Line Discount].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Purchase Line Discount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Line Discount]
LEFT JOIN
       [User] AS [User]
              ON
                     [Purchase Line Discount].[$systemModifiedBy] = [User].[User Security ID]

Show/hide tables related from Purchase Line Discount table

Leave a Reply

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