Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/7136
Table Type: Company
Table Name: Item Budget Buffer
Database Table Name: CRONUS UK Ltd_$Item Budget Buffer$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 Item Budget Buffer can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Item No_]
,[Source Type]
,[Source No_]
,[Location Code]
,[Global Dimension 1 Code]
,[Global Dimension 2 Code]
,[Budget Dimension 1 Code]
,[Budget Dimension 2 Code]
,[Budget Dimension 3 Code]
,[Date]
,[Quantity]
,[Sales Amount]
,[Cost Amount]
,[Dimension Set ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Budget Buffer]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Item Budget Buffer].[Location Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Item Budget Buffer].[Global Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Item Budget Buffer].[Global Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Item Budget Buffer].[Budget Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Item Budget Buffer].[Budget Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Item Budget Buffer].[Budget Dimension 3 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Item Budget Buffer].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
[User] AS [User]
ON
[Item Budget Buffer].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Item Budget Buffer].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Item Budget Buffer table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Item No. | Item No. | Normal | Code | 20 | Item No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Item Budget Buffer].[Item No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Budget Buffer] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Item Budget Buffer].[Item No_] = [Item].[No_] | |||||||
2 | Source Type | Source Type | Normal | Option | 4 | Source Type | int |
Available options are:
| |||||||
3 | Source No. | Source No. | Normal | Code | 20 | Source No_ | nvarchar(40) |
4 | Location Code | Location Code | Normal | Code | 10 | Location Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Item Budget Buffer].[Location Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Budget Buffer] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Item Budget Buffer].[Location Code] = [Location].[Code] | |||||||
5 | Global Dimension 1 Code | Global Dimension 1 Code | Normal | Code | 20 | Global Dimension 1 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Item Budget Buffer].[Global Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Budget Buffer] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Item Budget Buffer].[Global Dimension 1 Code] = [Dimension].[Code] | |||||||
6 | Global Dimension 2 Code | Global Dimension 2 Code | Normal | Code | 20 | Global Dimension 2 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Item Budget Buffer].[Global Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Budget Buffer] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Item Budget Buffer].[Global Dimension 2 Code] = [Dimension].[Code] | |||||||
7 | Budget Dimension 1 Code | Budget Dimension 1 Code | Normal | Code | 20 | Budget Dimension 1 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Item Budget Buffer].[Budget Dimension 1 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Budget Buffer] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Item Budget Buffer].[Budget Dimension 1 Code] = [Dimension].[Code] | |||||||
8 | Budget Dimension 2 Code | Budget Dimension 2 Code | Normal | Code | 20 | Budget Dimension 2 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Item Budget Buffer].[Budget Dimension 2 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Budget Buffer] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Item Budget Buffer].[Budget Dimension 2 Code] = [Dimension].[Code] | |||||||
9 | Budget Dimension 3 Code | Budget Dimension 3 Code | Normal | Code | 20 | Budget Dimension 3 Code | nvarchar(40) |
Key to join to the Dimension table.Show/hide example querySELECT [Item Budget Buffer].[Budget Dimension 3 Code] ,[Dimension].[Code] FROM [CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Budget Buffer] LEFT JOIN [CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension] ON [Item Budget Buffer].[Budget Dimension 3 Code] = [Dimension].[Code] | |||||||
10 | Date | Date | Normal | Date | 4 | Date | datetime |
11 | Quantity | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
12 | Sales Amount | Sales Amount | Normal | Decimal | 12 | Sales Amount | decimal(38,38) |
13 | Cost Amount | Cost Amount | Normal | Decimal | 12 | Cost Amount | decimal(38,38) |
480 | Dimension Set ID | Dimension Set ID | Normal | Integer | 4 | Dimension Set ID | int |
Key to join to the Dimension Set Entry table.Show/hide example querySELECT [Item Budget Buffer].[Dimension Set ID] ,[Dimension Set Entry].[Dimension Set ID] FROM [CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Budget Buffer] LEFT JOIN [CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry] ON [Item Budget Buffer].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID] | |||||||
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 [Item Budget Buffer].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Item Budget Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Budget Buffer] LEFT JOIN [User] AS [User] ON [Item Budget Buffer].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |