Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5520
Table Type: Company
Table Name: Unplanned Demand
Database Table Name: CRONUS UK Ltd_$Unplanned Demand$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 Unplanned Demand can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Unplanned Demand$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Demand Type]
,[Demand SubType]
,[Demand Order No_]
,[Demand Line No_]
,[Demand Ref_ No_]
,[Sell-to Customer No_]
,[Description]
,[Demand Date]
,[Status]
,[Item No_]
,[Variant Code]
,[Location Code]
,[Quantity (Base)]
,[Level]
,[Bin Code]
,[Qty_ per Unit of Measure]
,[Unit of Measure Code]
,[Reserve]
,[Needed Qty_ (Base)]
,[Special Order]
,[Purchasing Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Unplanned Demand$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Unplanned Demand$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unplanned Demand]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Unplanned Demand].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Unplanned Demand].[Location Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin]
ON
[Unplanned Demand].[Bin Code] = [Bin].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Purchasing$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchasing]
ON
[Unplanned Demand].[Purchasing Code] = [Purchasing].[Code]
LEFT JOIN
[User] AS [User]
ON
[Unplanned Demand].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Unplanned Demand].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Unplanned Demand table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Demand Type | Demand Type | Normal | Option | 4 | Demand Type | int |
Available options are:
| |||||||
2 | Demand SubType | Demand SubType | Normal | Option | 4 | Demand SubType | int |
Available options are:
| |||||||
4 | Demand Order No. | Demand Order No. | Normal | Code | 20 | Demand Order No_ | nvarchar(40) |
5 | Demand Line No. | Demand Line No. | Normal | Integer | 4 | Demand Line No_ | int |
6 | Demand Ref. No. | Demand Ref. No. | Normal | Integer | 4 | Demand Ref_ No_ | int |
7 | Sell-to Customer No. | Sell-to Customer No. | Normal | Code | 20 | Sell-to Customer No_ | nvarchar(40) |
Key to join to the Customer table.Show/hide example querySELECT [Unplanned Demand].[Sell-to Customer No_] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Unplanned Demand$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unplanned Demand] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Unplanned Demand].[Sell-to Customer No_] = [Customer].[No_] | |||||||
8 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
9 | Demand Date | Demand Date | Normal | Date | 4 | Demand Date | datetime |
10 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
13 | Item No. | Item No. | Normal | Code | 20 | Item No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Unplanned Demand].[Item No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Unplanned Demand$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unplanned Demand] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Unplanned Demand].[Item No_] = [Item].[No_] | |||||||
14 | Variant Code | Variant Code | Normal | Code | 10 | Variant Code | nvarchar(20) |
Key to join to the Item Variant table.Show/hide example querySELECT [Unplanned Demand].[Variant Code] ,[Item Variant].[Code] FROM [CRONUS UK Ltd_$Unplanned Demand$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unplanned Demand] LEFT JOIN [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant] ON [Unplanned Demand].[Variant Code] = [Item Variant].[Code] | |||||||
15 | Location Code | Location Code | Normal | Code | 10 | Location Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Unplanned Demand].[Location Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Unplanned Demand$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unplanned Demand] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Unplanned Demand].[Location Code] = [Location].[Code] | |||||||
16 | Quantity (Base) | Quantity (Base) | Normal | Decimal | 12 | Quantity (Base) | decimal(38,38) |
17 | Level | Level | Normal | Integer | 4 | Level | int |
18 | Bin Code | Bin Code | Normal | Code | 20 | Bin Code | nvarchar(40) |
Key to join to the Bin table.Show/hide example querySELECT [Unplanned Demand].[Bin Code] ,[Bin].[Code] FROM [CRONUS UK Ltd_$Unplanned Demand$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unplanned Demand] LEFT JOIN [CRONUS UK Ltd_$Bin$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Bin] ON [Unplanned Demand].[Bin Code] = [Bin].[Code] | |||||||
19 | Qty. per Unit of Measure | Qty. per Unit of Measure | Normal | Decimal | 12 | Qty_ per Unit of Measure | decimal(38,38) |
20 | Unit of Measure Code | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
21 | Reserve | Reserve | Normal | Boolean | 4 | Reserve | tinyint |
22 | Needed Qty. (Base) | Needed Qty. (Base) | Normal | Decimal | 12 | Needed Qty_ (Base) | decimal(38,38) |
23 | Special Order | Special Order | Normal | Boolean | 4 | Special Order | tinyint |
24 | Purchasing Code | Purchasing Code | Normal | Code | 10 | Purchasing Code | nvarchar(20) |
Key to join to the Purchasing table.Show/hide example querySELECT [Unplanned Demand].[Purchasing Code] ,[Purchasing].[Code] FROM [CRONUS UK Ltd_$Unplanned Demand$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unplanned Demand] LEFT JOIN [CRONUS UK Ltd_$Purchasing$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Purchasing] ON [Unplanned Demand].[Purchasing Code] = [Purchasing].[Code] | |||||||
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [Unplanned Demand].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Unplanned Demand$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Unplanned Demand] LEFT JOIN [User] AS [User] ON [Unplanned Demand].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |