Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/249
Table Type: Company
Table Name: VAT Registration Log
Database Table Name: CRONUS UK Ltd_$VAT Registration Log$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 VAT Registration Log can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Registration Log$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Entry No_]
,[VAT Registration No_]
,[Account Type]
,[Account No_]
,[Country_Region Code]
,[User ID]
,[Status]
,[Verified Name]
,[Verified Address]
,[Verified Date]
,[Request Identifier]
,[Verified Street]
,[Verified Postcode]
,[Verified City]
,[Details Status]
,[Template]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$VAT Registration Log$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Registration Log$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Registration Log]
LEFT JOIN
[CRONUS UK Ltd_$VAT Reg_ No_ Srv_ Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Reg. No. Srv. Template]
ON
[VAT Registration Log].[Template] = [VAT Reg. No. Srv. Template].[Code]
LEFT JOIN
[User] AS [User]
ON
[VAT Registration Log].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[VAT Registration Log].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in VAT Registration Log 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 | VAT Registration No. | Tax Registration No. | Normal | Text | 20 | VAT Registration No_ | nvarchar(40) |
3 | Account Type | Account Type | Normal | Option | 4 | Account Type | int |
Available options are:
| |||||||
4 | Account No. | Account No. | Normal | Code | 20 | Account No_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [VAT Registration Log].[Account No_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$VAT Registration Log$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Registration Log] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [VAT Registration Log].[Account No_] = [G/L Account].[No_] | |||||||
5 | Country/Region Code | Country/Region Code | Normal | Code | 10 | Country_Region Code | nvarchar(20) |
6 | User ID | User ID | Normal | Code | 50 | User ID | nvarchar(100) |
10 | Status | Status | Normal | Option | 4 | Status | int |
Available options are:
| |||||||
11 | Verified Name | Verified Name | Normal | Text | 150 | Verified Name | nvarchar(300) |
12 | Verified Address | Verified Address | Normal | Text | 150 | Verified Address | nvarchar(300) |
13 | Verified Date | Verified Date | Normal | DateTime | 8 | Verified Date | datetime |
14 | Request Identifier | Request Identifier | Normal | Text | 200 | Request Identifier | nvarchar(400) |
15 | Verified Street | Verified Street | Normal | Text | 50 | Verified Street | nvarchar(100) |
16 | Verified Postcode | Verified ZIP Code | Normal | Text | 20 | Verified Postcode | nvarchar(40) |
17 | Verified City | Verified City | Normal | Text | 30 | Verified City | nvarchar(60) |
18 | Details Status | Details Status | Normal | Option | 4 | Details Status | int |
Available options are:
| |||||||
19 | Template | Template | Normal | Code | 20 | Template | nvarchar(40) |
Key to join to the VAT Reg. No. Srv. Template table.Show/hide example querySELECT [VAT Registration Log].[Template] ,[VAT Reg. No. Srv. Template].[Code] FROM [CRONUS UK Ltd_$VAT Registration Log$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Registration Log] LEFT JOIN [CRONUS UK Ltd_$VAT Reg_ No_ Srv_ Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Reg. No. Srv. Template] ON [VAT Registration Log].[Template] = [VAT Reg. No. Srv. Template].[Code] | |||||||
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 [VAT Registration Log].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$VAT Registration Log$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Registration Log] LEFT JOIN [User] AS [User] ON [VAT Registration Log].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |