Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5913
Table Type: Company
Table Name: Loaner
Database Table Name: CRONUS UK Ltd_$Loaner$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 can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Loaner$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Description]
,[Description 2]
,[Unit of Measure Code]
,[Item No_]
,[Last Date Modified]
,[Blocked]
,[No_ Series]
,[Serial No_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Loaner$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[] AS [Loaner]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Loaner].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Loaner].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Loaner].[Document Type] = [Sales Header].[Document Type]
AND
[Loaner].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[User] AS [User]
ON
[Loaner].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Loaner].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Loaner table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | No. | No. | Normal | Code | 20 | No_ | nvarchar(40) |
2 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
4 | Description 2 | Description 2 | Normal | Text | 50 | Description 2 | nvarchar(100) |
5 | Unit of Measure Code | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
6 | Item No. | Item No. | Normal | Code | 20 | Item No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Loaner].[Item No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Loaner$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Loaner] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Loaner].[Item No_] = [Item].[No_] | |||||||
7 | Last Date Modified | Last Date Modified | Normal | Date | 4 | Last Date Modified | datetime |
8 | Comment | Comment | FlowField | Boolean | 4 | ||
9 | Blocked | Blocked | Normal | Boolean | 4 | Blocked | tinyint |
11 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [Loaner].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$Loaner$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Loaner] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [Loaner].[No_ Series] = [No. Series].[Code] | |||||||
12 | Document No. | Document No. | FlowField | Code | 20 | ||
13 | Lent | Lent | FlowField | Boolean | 4 | ||
14 | Serial No. | Serial No. | Normal | Code | 50 | Serial No_ | nvarchar(100) |
15 | Document Type | Document Type | FlowField | Option | 4 | ||
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].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Loaner$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Loaner] LEFT JOIN [User] AS [User] ON [Loaner].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |