Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/263
Table Type: Company
Table Name: Intrastat Jnl_ Line
Database Table Name: CRONUS UK Ltd_$Intrastat Jnl_ Line$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 Intrastat Jnl_ Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Intrastat Jnl_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[timestamp]
,[Journal Template Name]
,[Journal Batch Name]
,[Line No_]
,[Type]
,[Date]
,[Tariff No_]
,[Item Description]
,[Country_Region Code]
,[Transaction Type]
,[Transport Method]
,[Source Type]
,[Source Entry No_]
,[Net Weight]
,[Amount]
,[Quantity]
,[Cost Regulation _]
,[Indirect Cost]
,[Statistical Value]
,[Document No_]
,[Item No_]
,[Name]
,[Total Weight]
,[Supplementary Units]
,[Internal Ref_ No_]
,[Country_Region of Origin Code]
,[Entry_Exit Point]
,[Area]
,[Transaction Specification]
,[Shpt_ Method Code]
,[Partner VAT ID]
,[Location Code]
,[Counterparty]
,[Shipment Method Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Intrastat Jnl_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Intrastat Jnl_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Intrastat Jnl_ Line]
LEFT JOIN
[CRONUS UK Ltd_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country_Region]
ON
[Intrastat Jnl_ Line].[Country_Region Code] = [Country_Region].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Item$c526b3e9-b8ca-4683-81ba-fcd5f6b1472a] AS [Item]
ON
[Intrastat Jnl_ Line].[Item No_] = [Item].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country_Region]
ON
[Intrastat Jnl_ Line].[Country_Region of Origin Code] = [Country_Region].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Intrastat Jnl_ Line].[Location Code] = [Location].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Shipment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Shipment Method]
ON
[Intrastat Jnl_ Line].[Shipment Method Code] = [Shipment Method].[Code]
Show/hide columns in Intrastat Jnl_ Line table
Column ID | Column Name | Data Type | ||||
---|---|---|---|---|---|---|
1 | timestamp ![]() | timestamp | ||||
2 | Journal Template Name ![]() ![]() | nvarchar(20) | ||||
3 | Journal Batch Name ![]() ![]() | nvarchar(20) | ||||
4 | Line No_ ![]() ![]() | int | ||||
5 | Type ![]() | int | ||||
6 | Date ![]() | datetime | ||||
7 | Tariff No_ ![]() | nvarchar(40) | ||||
8 | Item Description ![]() | nvarchar(200) | ||||
9 | Country_Region Code ![]() | nvarchar(20) | ||||
Key to join to the Country_Region table.Show/hide example querySELECT
[Intrastat Jnl_ Line].[Country_Region Code]
,[Country_Region].[Code]
FROM
[CRONUS UK Ltd_$Intrastat Jnl_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Intrastat Jnl_ Line]
LEFT JOIN
[CRONUS UK Ltd_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country_Region]
ON
[Intrastat Jnl_ Line].[Country_Region Code] = [Country_Region].[Code] | ||||||
10 | Transaction Type ![]() | nvarchar(20) | ||||
11 | Transport Method ![]() | nvarchar(20) | ||||
12 | Source Type ![]() | int | ||||
13 | Source Entry No_ ![]() | int | ||||
14 | Net Weight ![]() | decimal(38,38) | ||||
15 | Amount ![]() | decimal(38,38) | ||||
16 | Quantity ![]() | decimal(38,38) | ||||
17 | Cost Regulation _ ![]() | decimal(38,38) | ||||
18 | Indirect Cost ![]() | decimal(38,38) | ||||
19 | Statistical Value ![]() | decimal(38,38) | ||||
20 | Document No_ ![]() | nvarchar(40) | ||||
21 | Item No_ ![]() | nvarchar(40) | ||||
Key to join to the Item table.Show/hide example querySELECT
[Intrastat Jnl_ Line].[Item No_]
,[Item].[No_]
FROM
[CRONUS UK Ltd_$Intrastat Jnl_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Intrastat Jnl_ Line]
LEFT JOIN
[CRONUS UK Ltd_$Item$c526b3e9-b8ca-4683-81ba-fcd5f6b1472a] AS [Item]
ON
[Intrastat Jnl_ Line].[Item No_] = [Item].[No_] | ||||||
22 | Name ![]() | nvarchar(200) | ||||
23 | Total Weight ![]() | decimal(38,38) | ||||
24 | Supplementary Units ![]() | tinyint | ||||
25 | Internal Ref_ No_ ![]() | nvarchar(20) | ||||
26 | Country_Region of Origin Code ![]() | nvarchar(20) | ||||
Key to join to the Country_Region table.Show/hide example querySELECT
[Intrastat Jnl_ Line].[Country_Region of Origin Code]
,[Country_Region].[Code]
FROM
[CRONUS UK Ltd_$Intrastat Jnl_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Intrastat Jnl_ Line]
LEFT JOIN
[CRONUS UK Ltd_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country_Region]
ON
[Intrastat Jnl_ Line].[Country_Region of Origin Code] = [Country_Region].[Code] | ||||||
27 | Entry_Exit Point ![]() | nvarchar(20) | ||||
28 | Area ![]() | nvarchar(20) | ||||
29 | Transaction Specification ![]() | nvarchar(20) | ||||
30 | Shpt_ Method Code ![]() | nvarchar(20) | ||||
31 | Partner VAT ID ![]() | nvarchar(100) | ||||
32 | Location Code ![]() | nvarchar(20) | ||||
Key to join to the Location table.Show/hide example querySELECT
[Intrastat Jnl_ Line].[Location Code]
,[Location].[Code]
FROM
[CRONUS UK Ltd_$Intrastat Jnl_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Intrastat Jnl_ Line]
LEFT JOIN
[CRONUS UK Ltd_$Location$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Location]
ON
[Intrastat Jnl_ Line].[Location Code] = [Location].[Code] | ||||||
33 | Counterparty ![]() | tinyint | ||||
34 | Shipment Method Code ![]() | nvarchar(20) | ||||
Key to join to the Shipment Method table.Show/hide example querySELECT
[Intrastat Jnl_ Line].[Shipment Method Code]
,[Shipment Method].[Code]
FROM
[CRONUS UK Ltd_$Intrastat Jnl_ Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Intrastat Jnl_ Line]
LEFT JOIN
[CRONUS UK Ltd_$Shipment Method$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Shipment Method]
ON
[Intrastat Jnl_ Line].[Shipment Method Code] = [Shipment Method].[Code] | ||||||
35 | $systemId ![]() | uniqueidentifier | ||||
36 | $systemCreatedAt ![]() | datetime | ||||
37 | $systemCreatedBy ![]() | uniqueidentifier | ||||
38 | $systemModifiedAt ![]() | datetime | ||||
39 | $systemModifiedBy ![]() | uniqueidentifier |