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
   [timestamp]
   ,[Item No_]
   ,[Vendor No_]
   ,[Starting Date]
   ,[Currency Code]
   ,[Variant Code]
   ,[Unit of Measure Code]
   ,[Minimum Quantity]
   ,[Line Discount _]
   ,[Ending Date]
   ,[$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_$Item$c526b3e9-b8ca-4683-81ba-fcd5f6b1472a] AS [Item]
      ON
         [Purchase Line Discount].[Item No_] = [Item].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor]
      ON
         [Purchase Line Discount].[Vendor No_] = [Vendor].[No_]
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_$Unit of Measure$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unit of Measure]
      ON
         [Purchase Line Discount].[Unit of Measure Code] = [Unit of Measure].[Code]

Show/hide columns in Purchase Line Discount table

Column IDColumn NameData Type
1timestamp Searchtimestamp
2Item No_ Primary Key Searchnvarchar(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$c526b3e9-b8ca-4683-81ba-fcd5f6b1472a] AS [Item]
              ON
                     [Purchase Line Discount].[Item No_] = [Item].[No_]
3Vendor No_ Primary Key Searchnvarchar(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_]
4Starting Date Primary Key Searchdatetime
5Currency Code Primary Key Searchnvarchar(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]
6Variant Code Primary Key Searchnvarchar(20)
7Unit of Measure Code Primary Key Searchnvarchar(20)
Key to join to the Unit of Measure table.

Show/hide example query

SELECT
       [Purchase Line Discount].[Unit of Measure Code]
       ,[Unit of Measure].[Code]
FROM
       [CRONUS UK Ltd_$Purchase Line Discount$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Line Discount]
LEFT JOIN
       [CRONUS UK Ltd_$Unit of Measure$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unit of Measure]
              ON
                     [Purchase Line Discount].[Unit of Measure Code] = [Unit of Measure].[Code]
8Minimum Quantity Primary Key Searchdecimal(38,38)
9Line Discount _ Searchdecimal(38,38)
10Ending Date Searchdatetime
11$systemId Searchuniqueidentifier
12$systemCreatedAt Searchdatetime
13$systemCreatedBy Searchuniqueidentifier
14$systemModifiedAt Searchdatetime
15$systemModifiedBy Searchuniqueidentifier

Show/hide tables related from Purchase Line Discount table

Leave a Reply

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