Purchase Price

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

Table Type: Company

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

Table Number: 7012

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 Price can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Purchase Price$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]
   ,[Direct Unit Cost]
   ,[Ending Date]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Purchase Price$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 Price$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Price]
LEFT JOIN
   [CRONUS UK Ltd_$Item$c526b3e9-b8ca-4683-81ba-fcd5f6b1472a] AS [Item]
      ON
         [Purchase Price].[Item No_] = [Item].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor]
      ON
         [Purchase Price].[Vendor No_] = [Vendor].[No_]
LEFT JOIN
   [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
      ON
         [Purchase Price].[Currency Code] = [Currency].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Unit of Measure$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unit of Measure]
      ON
         [Purchase Price].[Unit of Measure Code] = [Unit of Measure].[Code]

Show/hide columns in Purchase Price 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 Price].[Item No_]
       ,[Item].[No_]
FROM
       [CRONUS UK Ltd_$Purchase Price$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Price]
LEFT JOIN
       [CRONUS UK Ltd_$Item$c526b3e9-b8ca-4683-81ba-fcd5f6b1472a] AS [Item]
              ON
                     [Purchase Price].[Item No_] = [Item].[No_]
3Vendor No_ Primary Key Searchnvarchar(40)
Key to join to the Vendor table.

Show/hide example query

SELECT
       [Purchase Price].[Vendor No_]
       ,[Vendor].[No_]
FROM
       [CRONUS UK Ltd_$Purchase Price$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Price]
LEFT JOIN
       [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor]
              ON
                     [Purchase Price].[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 Price].[Currency Code]
       ,[Currency].[Code]
FROM
       [CRONUS UK Ltd_$Purchase Price$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Price]
LEFT JOIN
       [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
              ON
                     [Purchase Price].[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 Price].[Unit of Measure Code]
       ,[Unit of Measure].[Code]
FROM
       [CRONUS UK Ltd_$Purchase Price$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchase Price]
LEFT JOIN
       [CRONUS UK Ltd_$Unit of Measure$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unit of Measure]
              ON
                     [Purchase Price].[Unit of Measure Code] = [Unit of Measure].[Code]
8Minimum Quantity Primary Key Searchdecimal(38,38)
9Direct Unit Cost 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 Price table

Leave a Reply

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