Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/346
Table Type: Company
Table Name: Reservation Wksh. Line
Database Table Name: CRONUS UK Ltd_$Reservation Wksh_ 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 Reservation Wksh. Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Reservation Wksh_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Journal Batch Name]
,[Line No_]
,[Source Type]
,[Source Subtype]
,[Source ID]
,[Source Batch Name]
,[Source Prod_ Order Line]
,[Source Ref_ No_]
,[Record ID]
,[Item No_]
,[Variant Code]
,[Location Code]
,[Sell-to Customer No_]
,[Sell-to Customer Name]
,[Description]
,[Description 2]
,[Demand Date]
,[Unit of Measure Code]
,[Qty_ per Unit of Measure]
,[Remaining Qty_ to Reserve]
,[Rem_ Qty_ to Reserve (Base)]
,[Qty_ to Reserve]
,[Qty_ to Reserve (Base)]
,[Available Qty_ to Reserve]
,[Avail_ Qty_ to Reserve (Base)]
,[Qty_ in Stock]
,[Qty_ in Stock (Base)]
,[Qty_ Reserved in Stock]
,[Qty_ Reserv_ in Stock (Base)]
,[Qty_ in Whse_ Handling]
,[Qty_ in Whse_ Handling (Base)]
,[Accept]
,[Serial No_]
,[Lot No_]
,[Package No_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Reservation Wksh_ 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_$Reservation Wksh_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reservation Wksh. Line]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Reservation Wksh. Line].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Reservation Wksh. Line].[Location Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
ON
[Reservation Wksh. Line].[Sell-to Customer Name] = [Customer].[Name]
LEFT JOIN
[User] AS [User]
ON
[Reservation Wksh. Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Reservation Wksh. Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Reservation Wksh. Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Journal Batch Name | Journal Batch Name | Normal | Code | 10 | Journal Batch Name | nvarchar(20) |
2 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
10 | Source Type | Source Type | Normal | Integer | 4 | Source Type | int |
11 | Source Subtype | Source Subtype | Normal | Integer | 4 | Source Subtype | int |
12 | Source ID | Source ID | Normal | Code | 20 | Source ID | nvarchar(40) |
13 | Source Batch Name | Source Batch Name | Normal | Code | 10 | Source Batch Name | nvarchar(20) |
14 | Source Prod. Order Line | Source Prod. Order Line | Normal | Integer | 4 | Source Prod_ Order Line | int |
15 | Source Ref. No. | Source Ref. No. | Normal | Integer | 4 | Source Ref_ No_ | int |
17 | Record ID | Record ID | Normal | RecordID | 448 | Record ID | varbinary(448) |
21 | Item No. | Item No. | Normal | Code | 20 | Item No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Reservation Wksh. Line].[Item No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Reservation Wksh_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reservation Wksh. Line] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Reservation Wksh. Line].[Item No_] = [Item].[No_] | |||||||
22 | Variant Code | Variant Code | Normal | Code | 10 | Variant Code | nvarchar(20) |
Key to join to the Item Variant table.Show/hide example querySELECT [Reservation Wksh. Line].[Variant Code] ,[Item Variant].[Code] FROM [CRONUS UK Ltd_$Reservation Wksh_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reservation Wksh. Line] LEFT JOIN [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant] ON [Reservation Wksh. Line].[Variant Code] = [Item Variant].[Code] | |||||||
23 | Location Code | Location Code | Normal | Code | 10 | Location Code | nvarchar(20) |
Key to join to the Location table.Show/hide example querySELECT [Reservation Wksh. Line].[Location Code] ,[Location].[Code] FROM [CRONUS UK Ltd_$Reservation Wksh_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reservation Wksh. Line] LEFT JOIN [CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location] ON [Reservation Wksh. Line].[Location Code] = [Location].[Code] | |||||||
24 | 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 [Reservation Wksh. Line].[Sell-to Customer No_] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Reservation Wksh_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reservation Wksh. Line] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Reservation Wksh. Line].[Sell-to Customer No_] = [Customer].[No_] | |||||||
25 | Sell-to Customer Name | Sell-to Customer Name | Normal | Text | 100 | Sell-to Customer Name | nvarchar(200) |
Key to join to the Customer table.Show/hide example querySELECT [Reservation Wksh. Line].[Sell-to Customer Name] ,[Customer].[Name] FROM [CRONUS UK Ltd_$Reservation Wksh_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reservation Wksh. Line] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Reservation Wksh. Line].[Sell-to Customer Name] = [Customer].[Name] | |||||||
29 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
30 | Description 2 | Description 2 | Normal | Text | 100 | Description 2 | nvarchar(200) |
31 | Demand Date | Demand Date | Normal | Date | 4 | Demand Date | datetime |
32 | Unit of Measure Code | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
33 | Qty. per Unit of Measure | Qty. per Unit of Measure | Normal | Decimal | 12 | Qty_ per Unit of Measure | decimal(38,38) |
41 | Remaining Qty. to Reserve | Remaining Qty. to Reserve | Normal | Decimal | 12 | Remaining Qty_ to Reserve | decimal(38,38) |
42 | Rem. Qty. to Reserve (Base) | Rem. Qty. to Reserve (Base) | Normal | Decimal | 12 | Rem_ Qty_ to Reserve (Base) | decimal(38,38) |
43 | Qty. to Reserve | Qty. to Reserve | Normal | Decimal | 12 | Qty_ to Reserve | decimal(38,38) |
44 | Qty. to Reserve (Base) | Qty. to Reserve (Base) | Normal | Decimal | 12 | Qty_ to Reserve (Base) | decimal(38,38) |
51 | Available Qty. to Reserve | Available Qty. to Reserve | Normal | Decimal | 12 | Available Qty_ to Reserve | decimal(38,38) |
52 | Avail. Qty. to Reserve (Base) | Avail. Qty. to Reserve (Base) | Normal | Decimal | 12 | Avail_ Qty_ to Reserve (Base) | decimal(38,38) |
61 | Qty. in Stock | Qty. in Stock | Normal | Decimal | 12 | Qty_ in Stock | decimal(38,38) |
62 | Qty. in Stock (Base) | Qty. in Stock (Base) | Normal | Decimal | 12 | Qty_ in Stock (Base) | decimal(38,38) |
63 | Qty. Reserved in Stock | Qty. Reserved from Stock | Normal | Decimal | 12 | Qty_ Reserved in Stock | decimal(38,38) |
64 | Qty. Reserv. in Stock (Base) | Qty. Reserved from Stock (Base) | Normal | Decimal | 12 | Qty_ Reserv_ in Stock (Base) | decimal(38,38) |
65 | Qty. in Whse. Handling | Qty. in Warehouse Handling | Normal | Decimal | 12 | Qty_ in Whse_ Handling | decimal(38,38) |
66 | Qty. in Whse. Handling (Base) | Qty. in Warehouse Handling (Base) | Normal | Decimal | 12 | Qty_ in Whse_ Handling (Base) | decimal(38,38) |
100 | Accept | Accept | Normal | Boolean | 4 | Accept | tinyint |
6501 | Serial No. | Serial No. | Normal | Code | 50 | Serial No_ | nvarchar(100) |
6502 | Lot No. | Lot No. | Normal | Code | 50 | Lot No_ | nvarchar(100) |
6503 | Package No. | Package No. | Normal | Code | 50 | Package No_ | nvarchar(100) |
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 [Reservation Wksh. Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Reservation Wksh_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reservation Wksh. Line] LEFT JOIN [User] AS [User] ON [Reservation Wksh. Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |