Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/171
Table Type: Company
Table Name: Standard Sales Line
Database Table Name: CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972
Table Number: 171Due 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 Standard Sales Line can be queried.
SELECT
*
FROM
[CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
SELECT
[Standard Sales Code]
,[Line No_]
,[Type]
,[No_]
,[Description]
,[Quantity]
,[Amount Excl_ VAT]
,[Unit of Measure Code]
,[Shortcut Dimension 1 Code]
,[Shortcut Dimension 2 Code]
,[Variant Code]
,[Dimension Set ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
SELECT
*
FROM
[CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
LEFT JOIN
[CRONUS UK Ltd_$Standard Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Code]
ON
[Standard Sales Line].[Standard Sales Code] = [Standard Sales Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Standard Sales Line].[Shortcut Dimension 1 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Standard Sales Line].[Shortcut Dimension 2 Code] = [Dimension].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Standard Sales Line].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Standard Sales Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID]
LEFT JOIN
[User] AS [User]
ON
[Standard Sales Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Standard Sales Line].[SystemModifiedBy] = [User].[User Security ID]
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|
1 | Standard Sales Code  | Standard Sales Code | Normal | Code | 10 | Standard Sales Code | nvarchar(20) |
| Key to join to the Standard Sales Code table.SELECT
[Standard Sales Line].[Standard Sales Code]
,[Standard Sales Code].[Code]
FROM
[CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
LEFT JOIN
[CRONUS UK Ltd_$Standard Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Code]
ON
[Standard Sales Line].[Standard Sales Code] = [Standard Sales Code].[Code] |
2 | Line No.  | Line No. | Normal | Integer | 4 | Line No_ | int |
3 | Type  | Type | Normal | Option | 4 | Type | int |
| Available options are:
- ” “
- “G/L Account”
- “Item”
- “Resource”
- “Fixed Asset”
- “Charge (Item)”
- “Allocation Account”
|
4 | No.  | No. | Normal | Code | 20 | No_ | nvarchar(40) |
5 | Description  | Description | Normal | Text | 100 | Description | nvarchar(200) |
6 | Quantity  | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
7 | Amount Excl. VAT  | Amount Excl. Tax | Normal | Decimal | 12 | Amount Excl_ VAT | decimal(38,38) |
8 | Unit of Measure Code  | Unit of Measure Code | Normal | Code | 10 | Unit of Measure Code | nvarchar(20) |
9 | Shortcut Dimension 1 Code  | Shortcut Dimension 1 Code | Normal | Code | 20 | Shortcut Dimension 1 Code | nvarchar(40) |
| Key to join to the Dimension table.SELECT
[Standard Sales Line].[Shortcut Dimension 1 Code]
,[Dimension].[Code]
FROM
[CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Standard Sales Line].[Shortcut Dimension 1 Code] = [Dimension].[Code] |
10 | Shortcut Dimension 2 Code  | Shortcut Dimension 2 Code | Normal | Code | 20 | Shortcut Dimension 2 Code | nvarchar(40) |
| Key to join to the Dimension table.SELECT
[Standard Sales Line].[Shortcut Dimension 2 Code]
,[Dimension].[Code]
FROM
[CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
LEFT JOIN
[CRONUS UK Ltd_$Dimension$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension]
ON
[Standard Sales Line].[Shortcut Dimension 2 Code] = [Dimension].[Code] |
11 | Variant Code  | Variant Code | Normal | Code | 10 | Variant Code | nvarchar(20) |
| Key to join to the Item Variant table.SELECT
[Standard Sales Line].[Variant Code]
,[Item Variant].[Code]
FROM
[CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
LEFT JOIN
[CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
ON
[Standard Sales Line].[Variant Code] = [Item Variant].[Code] |
480 | Dimension Set ID  | Dimension Set ID | Normal | Integer | 4 | Dimension Set ID | int |
| Key to join to the Dimension Set Entry table.SELECT
[Standard Sales Line].[Dimension Set ID]
,[Dimension Set Entry].[Dimension Set ID]
FROM
[CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
LEFT JOIN
[CRONUS UK Ltd_$Dimension Set Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Dimension Set Entry]
ON
[Standard Sales Line].[Dimension Set ID] = [Dimension Set Entry].[Dimension Set ID] |
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.SELECT
[Standard Sales Line].[$systemCreatedBy]
,[User].[User Security ID]
FROM
[CRONUS UK Ltd_$Standard Sales Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Sales Line]
LEFT JOIN
[User] AS [User]
ON
[Standard Sales Line].[$systemCreatedBy] = [User].[User Security ID] |
2000000003 | SystemModifiedAt  | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy  | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |