Purch. Price Line Disc. Buff.

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

Table Type: Company

Table Name: Purch. Price Line Disc. Buff.
Database Table Name: CRONUS UK Ltd_$Purch_ Price Line Disc_ Buff_$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 1315

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 Purch. Price Line Disc. Buff. can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Purch_ Price Line Disc_ Buff_$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

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

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

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

Show/hide columns in Purch. Price Line Disc. Buff. table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
3Currency Code SearchCurrency CodeNormalCode10Currency Codenvarchar(20)
Key to join to the Currency table.

Show/hide example query

SELECT
	       [Purch. Price Line Disc. Buff.].[Currency Code]
	       ,[Currency].[Code]
	FROM
	       [CRONUS UK Ltd_$Purch_ Price Line Disc_ Buff_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purch. Price Line Disc. Buff.]
	LEFT JOIN
	       [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
	              ON
	                     [Purch. Price Line Disc. Buff.].[Currency Code] = [Currency].[Code]
4Starting Date Primary Key SearchStarting DateNormalDate4Starting Datedatetime
5Line Discount % Primary Key SearchLine Discount %NormalDecimal12Line Discount _decimal(38,38)
6Direct Unit Cost SearchDirect Unit CostNormalDecimal12Direct Unit Costdecimal(38,38)
14Minimum Quantity SearchMinimum QuantityNormalDecimal12Minimum Quantitydecimal(38,38)
15Ending Date Primary Key SearchEnding DateNormalDate4Ending Datedatetime
Key to join to the Inventory Period table.

Show/hide example query

SELECT
	       [Purch. Price Line Disc. Buff.].[Ending Date]
	       ,[Inventory Period].[Ending Date]
	FROM
	       [CRONUS UK Ltd_$Purch_ Price Line Disc_ Buff_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purch. Price Line Disc. Buff.]
	LEFT JOIN
	       [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
	              ON
	                     [Purch. Price Line Disc. Buff.].[Ending Date] = [Inventory Period].[Ending Date]
1300Line Type SearchLine TypeNormalOption4Line Typeint
Available options are:
  • ” “
  • “Purchase Line Discount”
  • “Purchase Price”
1301Item No. Primary Key SearchItem No.NormalCode20Item No_nvarchar(40)
Key to join to the Item table.

Show/hide example query

SELECT
	       [Purch. Price Line Disc. Buff.].[Item No_]
	       ,[Item].[No_]
	FROM
	       [CRONUS UK Ltd_$Purch_ Price Line Disc_ Buff_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purch. Price Line Disc. Buff.]
	LEFT JOIN
	       [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item]
	              ON
	                     [Purch. Price Line Disc. Buff.].[Item No_] = [Item].[No_]
1303Vendor No. Primary Key SearchVendor No.NormalCode20Vendor No_nvarchar(40)
Key to join to the Vendor table.

Show/hide example query

SELECT
	       [Purch. Price Line Disc. Buff.].[Vendor No_]
	       ,[Vendor].[No_]
	FROM
	       [CRONUS UK Ltd_$Purch_ Price Line Disc_ Buff_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purch. Price Line Disc. Buff.]
	LEFT JOIN
	       [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor]
	              ON
	                     [Purch. Price Line Disc. Buff.].[Vendor No_] = [Vendor].[No_]
5400Unit of Measure Code Primary Key SearchUnit of Measure CodeNormalCode20Unit of Measure Codenvarchar(40)
5700Variant Code Primary Key SearchVariant CodeNormalCode20Variant Codenvarchar(40)
Key to join to the Item Variant table.

Show/hide example query

SELECT
	       [Purch. Price Line Disc. Buff.].[Variant Code]
	       ,[Item Variant].[Code]
	FROM
	       [CRONUS UK Ltd_$Purch_ Price Line Disc_ Buff_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purch. Price Line Disc. Buff.]
	LEFT JOIN
	       [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
	              ON
	                     [Purch. Price Line Disc. Buff.].[Variant Code] = [Item Variant].[Code]
2000000000$systemId Primary Key SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [Purch. Price Line Disc. Buff.].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Purch_ Price Line Disc_ Buff_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purch. Price Line Disc. Buff.]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Purch. Price Line Disc. Buff.].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Show/hide tables related from Purch. Price Line Disc. Buff. table

Leave a Reply

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