VAT Return Period

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/737

Table Type: Company

Table Name: VAT Return Period
Database Table Name: CRONUS UK Ltd_$VAT Return Period$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 737

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 Return Period can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$VAT Return Period$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [No_]
   ,[No_ Series]
   ,[Period Key]
   ,[Start Date]
   ,[End Date]
   ,[Due Date]
   ,[Status]
   ,[Received Date]
   ,[VAT Return No_]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$VAT Return Period$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 Return Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Return Period]
LEFT JOIN
   [User] AS [User]
      ON
         [VAT Return Period].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [VAT Return Period].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in VAT Return Period table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1No. SearchNo.NormalCode20No_nvarchar(40)
2No. Series Primary Key SearchNo. SeriesNormalCode20No_ Seriesnvarchar(40)
Key to join to the No. Series table.

Show/hide example query

SELECT
	       [VAT Return Period].[No_ Series]
	       ,[No. Series].[Code]
	FROM
	       [CRONUS UK Ltd_$VAT Return Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Return Period]
	LEFT JOIN
	       [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series]
	              ON
	                     [VAT Return Period].[No_ Series] = [No. Series].[Code]
3Period Key SearchPeriod KeyNormalCode10Period Keynvarchar(20)
4Start Date SearchStart DateNormalDate4Start Datedatetime
5End Date SearchEnd DateNormalDate4End Datedatetime
6Due Date SearchDue DateNormalDate4Due Datedatetime
7Status SearchStatusNormalOption4Statusint
Available options are:
  • “Open”
  • “Closed”
8Received Date SearchReceived DateNormalDate4Received Datedatetime
20VAT Return No. SearchTax Return No.NormalCode20VAT Return No_nvarchar(40)
21VAT Return Status SearchTax Return StatusFlowFieldOption4
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [VAT Return Period].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$VAT Return Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Return Period]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [VAT Return Period].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

Your email address will not be published. Required fields are marked *