Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/5616
Table Type: Company
Table Name: Maintenance Registration
Database Table Name: CRONUS UK Ltd_$Maintenance Registration$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 Maintenance Registration can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Maintenance Registration$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[FA No_]
,[Line No_]
,[Service Date]
,[Maintenance Vendor No_]
,[Comment]
,[Service Agent Name]
,[Service Agent Phone No_]
,[Service Agent Mobile Phone]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Maintenance Registration$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Maintenance Registration$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Maintenance Registration]
LEFT JOIN
[User] AS [User]
ON
[Maintenance Registration].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Maintenance Registration].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Maintenance Registration table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | FA No. | FA No. | Normal | Code | 20 | FA No_ | nvarchar(40) |
Key to join to the Fixed Asset table.Show/hide example querySELECT [Maintenance Registration].[FA No_] ,[Fixed Asset].[No_] FROM [CRONUS UK Ltd_$Maintenance Registration$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Maintenance Registration] LEFT JOIN [CRONUS UK Ltd_$Fixed Asset$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Fixed Asset] ON [Maintenance Registration].[FA No_] = [Fixed Asset].[No_] | |||||||
2 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
3 | Service Date | Service Date | Normal | Date | 4 | Service Date | datetime |
4 | Maintenance Vendor No. | Maintenance Vendor No. | Normal | Code | 20 | Maintenance Vendor No_ | nvarchar(40) |
Key to join to the Vendor table.Show/hide example querySELECT [Maintenance Registration].[Maintenance Vendor No_] ,[Vendor].[No_] FROM [CRONUS UK Ltd_$Maintenance Registration$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Maintenance Registration] LEFT JOIN [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor] ON [Maintenance Registration].[Maintenance Vendor No_] = [Vendor].[No_] | |||||||
5 | Comment | Comment | Normal | Text | 50 | Comment | nvarchar(100) |
6 | Service Agent Name | Service Agent Name | Normal | Text | 30 | Service Agent Name | nvarchar(60) |
7 | Service Agent Phone No. | Service Agent Phone No. | Normal | Text | 30 | Service Agent Phone No_ | nvarchar(60) |
8 | Service Agent Mobile Phone | Service Agent Mobile Phone | Normal | Text | 30 | Service Agent Mobile Phone | nvarchar(60) |
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 [Maintenance Registration].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Maintenance Registration$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Maintenance Registration] LEFT JOIN [User] AS [User] ON [Maintenance Registration].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |