Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/920
Table Type: Company
Table Name: Res. Gr. Availability Buffer
Database Table Name: CRONUS UK Ltd_$Res_ Gr_ Availability 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 Res. Gr. Availability Buffer can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Res_ Gr_ Availability Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Resource Group No_]
,[Period Type]
,[Period Name]
,[Period Start]
,[Period End]
,[Capacity]
,[Qty_ on Order (Job)]
,[Qty_ on Service Order]
,[Availability After Orders]
,[Qty_ Quoted (Job)]
,[Net Availability]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Res_ Gr_ Availability 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_$Res_ Gr_ Availability Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Gr. Availability Buffer]
LEFT JOIN
[User] AS [User]
ON
[Res. Gr. Availability Buffer].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Res. Gr. Availability Buffer].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Res. Gr. Availability Buffer table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Resource Group No. | Resource Group No. | Normal | Code | 20 | Resource Group No_ | nvarchar(40) |
Key to join to the Resource Group table.Show/hide example querySELECT [Res. Gr. Availability Buffer].[Resource Group No_] ,[Resource Group].[No_] FROM [CRONUS UK Ltd_$Res_ Gr_ Availability Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Gr. Availability Buffer] LEFT JOIN [CRONUS UK Ltd_$Resource Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Resource Group] ON [Res. Gr. Availability Buffer].[Resource Group No_] = [Resource Group].[No_] | |||||||
5 | Period Type | Period Type | Normal | Option | 4 | Period Type | int |
Available options are:
| |||||||
6 | Period Name | Period Name | Normal | Text | 50 | Period Name | nvarchar(100) |
7 | Period Start | Period Start | Normal | Date | 4 | Period Start | datetime |
8 | Period End | Period End | Normal | Date | 4 | Period End | datetime |
10 | Capacity | Capacity | Normal | Decimal | 12 | Capacity | decimal(38,38) |
11 | Qty. on Order (Job) | Qty. on Order | Normal | Decimal | 12 | Qty_ on Order (Job) | decimal(38,38) |
12 | Qty. on Service Order | Qty. Allocated on Service Order | Normal | Decimal | 12 | Qty_ on Service Order | decimal(38,38) |
13 | Availability After Orders | Availability After Orders | Normal | Decimal | 12 | Availability After Orders | decimal(38,38) |
14 | Qty. Quoted (Job) | Job Quotes Allocation | Normal | Decimal | 12 | Qty_ Quoted (Job) | decimal(38,38) |
15 | Net Availability | Net Availability | Normal | Decimal | 12 | Net Availability | decimal(38,38) |
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 [Res. Gr. Availability Buffer].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Res_ Gr_ Availability Buffer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Res. Gr. Availability Buffer] LEFT JOIN [User] AS [User] ON [Res. Gr. Availability Buffer].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |