Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5830
Table Type: Company
Table Name: Availability Calc. Overview
Database Table Name: CRONUS UK Ltd_$Availability Calc_ Overview$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 Availability Calc. Overview can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Availability Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Entry No_]
,[Type]
,[Date]
,[Item No_]
,[Location Code]
,[Variant Code]
,[Unit of Measure Code]
,[Attached to Entry No_]
,[Level]
,[Source Type]
,[Source Order Status]
,[Source ID]
,[Source Batch Name]
,[Source Ref_ No_]
,[Source Prod_ Order Line]
,[Description]
,[Quantity]
,[Reserved Quantity]
,[Inventory Running Total]
,[Supply Running Total]
,[Demand Running Total]
,[Running Total]
,[Matches Criteria]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Availability Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Availability Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Availability Calc. Overview]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Availability Calc. Overview].[Location Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Availability Calc. Overview].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[User] AS [User]
ON
[Availability Calc. Overview].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Availability Calc. Overview].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Availability Calc. Overview table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Entry No. | Entry No. | Normal | Integer | 4 | Entry No_ | int |
2 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
3 | Date | Date | Normal | Date | 4 | Date | datetime |
4 | Item No. | Item No. | Normal | Code | 20 | Item No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Availability Calc. Overview].[Item No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Availability Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Availability Calc. Overview] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Availability Calc. Overview].[Item No_] = [Item].[No_] | |||||||
5 | Location Code | Location Code | Normal | Code | 10 | Location Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Availability Calc. Overview].[Location Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Availability Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Availability Calc. Overview] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Availability Calc. Overview].[Location Code] = [Location].[Code] | |||||||
6 | Variant Code | Variant Code | Normal | Code | 10 | Variant Code | nvarchar(20) |
Key to join to the Item Variant table.Show/hide example querySELECT [Availability Calc. Overview].[Variant Code] ,[Item Variant].[Code] FROM [CRONUS UK Ltd_$Availability Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Availability Calc. Overview] LEFT JOIN [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant] ON [Availability Calc. Overview].[Variant Code] = [Item Variant].[Code] | |||||||
7 | Unit of Measure Code | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
11 | Attached to Entry No. | Attached to Entry No. | Normal | Integer | 4 | Attached to Entry No_ | int |
Key to join to the Item Ledger Entry table.Show/hide example querySELECT [Availability Calc. Overview].[Attached to Entry No_] ,[Item Ledger Entry].[Entry No_] FROM [CRONUS UK Ltd_$Availability Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Availability Calc. Overview] LEFT JOIN [CRONUS UK Ltd_$Item Ledger Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Ledger Entry] ON [Availability Calc. Overview].[Attached to Entry No_] = [Item Ledger Entry].[Entry No_] | |||||||
13 | Level | Level | Normal | Integer | 4 | Level | int |
21 | Source Type | Source Type | Normal | Integer | 4 | Source Type | int |
22 | Source Order Status | Source Order Status | Normal | Integer | 4 | Source Order Status | int |
23 | Source ID | Source ID | Normal | Code | 20 | Source ID | nvarchar(40) |
24 | Source Batch Name | Source Batch Name | Normal | Code | 10 | Source Batch Name | nvarchar(20) |
25 | Source Ref. No. | Source Ref. No. | Normal | Integer | 4 | Source Ref_ No_ | int |
26 | Source Prod. Order Line | Source Prod. Order Line | Normal | Integer | 4 | Source Prod_ Order Line | int |
27 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
41 | Quantity | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
42 | Reserved Quantity | Reserved Quantity | Normal | Decimal | 12 | Reserved Quantity | decimal(38,38) |
45 | Inventory Running Total | Inventory Running Total | Normal | Decimal | 12 | Inventory Running Total | decimal(38,38) |
46 | Supply Running Total | Supply Running Total | Normal | Decimal | 12 | Supply Running Total | decimal(38,38) |
47 | Demand Running Total | Demand Running Total | Normal | Decimal | 12 | Demand Running Total | decimal(38,38) |
48 | Running Total | Running Total | Normal | Decimal | 12 | Running Total | decimal(38,38) |
50 | Matches Criteria | Matches Criteria | Normal | Boolean | 4 | Matches Criteria | tinyint |
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 [Availability Calc. Overview].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Availability Calc_ Overview$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Availability Calc. Overview] LEFT JOIN [User] AS [User] ON [Availability Calc. Overview].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |