Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5914
Table Type: Company
Table Name: Loaner Entry
Database Table Name: CRONUS UK Ltd_$Loaner Entry$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 Loaner Entry can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Loaner Entry$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Entry No_]
,[Loaner No_]
,[Document No_]
,[Service Item Line No_]
,[Service Item No_]
,[Service Item Group Code]
,[Customer No_]
,[Date Lent]
,[Time Lent]
,[Date Received]
,[Time Received]
,[Lent]
,[Document Type]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Loaner Entry$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Loaner Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Loaner Entry]
LEFT JOIN
[CRONUS UK Ltd_$Service Item Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item Group]
ON
[Loaner Entry].[Service Item Group Code] = [Service Item Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Loaner Entry].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Loaner Entry].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Loaner Entry].[Document Type] = [Sales Header].[Document Type]
AND
[Loaner Entry].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[User] AS [User]
ON
[Loaner Entry].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Loaner Entry].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Loaner Entry 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 | Loaner No. | Loaner No. | Normal | Code | 20 | Loaner No_ | nvarchar(40) |
Key to join to the Loaner table.Show/hide example querySELECT [Loaner Entry].[Loaner No_] ,[Loaner].[No_] FROM [CRONUS UK Ltd_$Loaner Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Loaner Entry] LEFT JOIN [CRONUS UK Ltd_$Loaner$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Loaner] ON [Loaner Entry].[Loaner No_] = [Loaner].[No_] | |||||||
3 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
4 | Service Item Line No. | Service Item Line No. | Normal | Integer | 4 | Service Item Line No_ | int |
5 | Service Item No. | Service Item No. | Normal | Code | 20 | Service Item No_ | nvarchar(40) |
Key to join to the Service Item table.Show/hide example querySELECT [Loaner Entry].[Service Item No_] ,[Service Item].[No_] FROM [CRONUS UK Ltd_$Loaner Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Loaner Entry] LEFT JOIN [CRONUS UK Ltd_$Service Item$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item] ON [Loaner Entry].[Service Item No_] = [Service Item].[No_] | |||||||
6 | Service Item Group Code | Service Item Group Code | Normal | Code | 10 | Service Item Group Code | nvarchar(20) |
Key to join to the Service Item Group table.Show/hide example querySELECT [Loaner Entry].[Service Item Group Code] ,[Service Item Group].[Code] FROM [CRONUS UK Ltd_$Loaner Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Loaner Entry] LEFT JOIN [CRONUS UK Ltd_$Service Item Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Item Group] ON [Loaner Entry].[Service Item Group Code] = [Service Item Group].[Code] | |||||||
7 | Customer No. | Customer No. | Normal | Code | 20 | Customer No_ | nvarchar(40) |
Key to join to the Customer table.Show/hide example querySELECT [Loaner Entry].[Customer No_] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Loaner Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Loaner Entry] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Loaner Entry].[Customer No_] = [Customer].[No_] | |||||||
8 | Date Lent | Date Lent | Normal | Date | 4 | Date Lent | datetime |
9 | Time Lent | Time Lent | Normal | Time | 4 | Time Lent | datetime |
10 | Date Received | Date Received | Normal | Date | 4 | Date Received | datetime |
11 | Time Received | Time Received | Normal | Time | 4 | Time Received | datetime |
12 | Lent | Lent | Normal | Boolean | 4 | Lent | tinyint |
14 | Document Type | Document Type | Normal | Option | 4 | Document Type | int |
Available options are:
| |||||||
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 [Loaner Entry].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Loaner Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Loaner Entry] LEFT JOIN [User] AS [User] ON [Loaner Entry].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |