Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/99000800
Table Type: Company
Table Name: Sales Planning Line
Database Table Name: CRONUS UK Ltd_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972
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 Sales Planning Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[timestamp]
,[Sales Order No_]
,[Sales Order Line No_]
,[Item No_]
,[Description]
,[Shipment Date]
,[Available]
,[Next Planning Date]
,[Expected Delivery Date]
,[Planning Status]
,[Needs Replanning]
,[Variant Code]
,[Planned Quantity]
,[Low-Level Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Sales Planning 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_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Planning Line]
LEFT JOIN
[CRONUS UK Ltd_$Item$c526b3e9-b8ca-4683-81ba-fcd5f6b1472a] AS [Item]
ON
[Sales Planning Line].[Item No_] = [Item].[No_]
Show/hide columns in Sales Planning Line table
Column ID | Column Name | Data Type | ||||
---|---|---|---|---|---|---|
1 | timestamp ![]() | timestamp | ||||
2 | Sales Order No_ ![]() ![]() | nvarchar(40) | ||||
3 | Sales Order Line No_ ![]() ![]() | int | ||||
4 | Item No_ ![]() | nvarchar(40) | ||||
Key to join to the Item table.Show/hide example querySELECT
[Sales Planning Line].[Item No_]
,[Item].[No_]
FROM
[CRONUS UK Ltd_$Sales Planning Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Planning Line]
LEFT JOIN
[CRONUS UK Ltd_$Item$c526b3e9-b8ca-4683-81ba-fcd5f6b1472a] AS [Item]
ON
[Sales Planning Line].[Item No_] = [Item].[No_] | ||||||
5 | Description ![]() | nvarchar(200) | ||||
6 | Shipment Date ![]() | datetime | ||||
7 | Available ![]() | decimal(38,38) | ||||
8 | Next Planning Date ![]() | datetime | ||||
9 | Expected Delivery Date ![]() | datetime | ||||
10 | Planning Status ![]() | int | ||||
11 | Needs Replanning ![]() | tinyint | ||||
12 | Variant Code ![]() | nvarchar(20) | ||||
13 | Planned Quantity ![]() | decimal(38,38) | ||||
14 | Low-Level Code ![]() | int | ||||
15 | $systemId ![]() | uniqueidentifier | ||||
16 | $systemCreatedAt ![]() | datetime | ||||
17 | $systemCreatedBy ![]() | uniqueidentifier | ||||
18 | $systemModifiedAt ![]() | datetime | ||||
19 | $systemModifiedBy ![]() | uniqueidentifier |