Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/172
Table Type: Company
Table Name: Standard Customer Sales Code
Database Table Name: CRONUS UK Ltd_$Standard Customer Sales Code$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 Standard Customer Sales Code can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Standard Customer Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Customer No_]
,[Code]
,[Description]
,[Valid From Date]
,[Valid To date]
,[Payment Method Code]
,[Payment Terms Code]
,[Direct Debit Mandate ID]
,[Blocked]
,[Currency Code]
,[Insert Rec_ Lines On Quotes]
,[Insert Rec_ Lines On Orders]
,[Insert Rec_ Lines On Invoices]
,[Insert Rec_ Lines On Cr_ Memos]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Standard Customer Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Standard Customer Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Customer Sales Code]
LEFT JOIN
[CRONUS UK Ltd_$Payment Method$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Payment Method]
ON
[Standard Customer Sales Code].[Payment Method Code] = [Payment Method].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
ON
[Standard Customer Sales Code].[Payment Terms Code] = [Payment Terms].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
ON
[Standard Customer Sales Code].[Currency Code] = [Currency].[Code]
LEFT JOIN
[User] AS [User]
ON
[Standard Customer Sales Code].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Standard Customer Sales Code].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Standard Customer Sales Code table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Customer No. | Customer No. | Normal | Code | 20 | Customer No_ | nvarchar(40) |
Key to join to the Customer table.Show/hide example querySELECT [Standard Customer Sales Code].[Customer No_] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Standard Customer Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Customer Sales Code] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Standard Customer Sales Code].[Customer No_] = [Customer].[No_] | |||||||
2 | Code | Code | Normal | Code | 10 | Code | nvarchar(20) |
3 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
4 | Valid From Date | Valid From Date | Normal | Date | 4 | Valid From Date | datetime |
5 | Valid To date | Valid To date | Normal | Date | 4 | Valid To date | datetime |
6 | Payment Method Code | Payment Method Code | Normal | Code | 10 | Payment Method Code | nvarchar(20) |
Key to join to the Payment Method table.Show/hide example querySELECT [Standard Customer Sales Code].[Payment Method Code] ,[Payment Method].[Code] FROM [CRONUS UK Ltd_$Standard Customer Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Customer Sales Code] LEFT JOIN [CRONUS UK Ltd_$Payment Method$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Payment Method] ON [Standard Customer Sales Code].[Payment Method Code] = [Payment Method].[Code] | |||||||
7 | Payment Terms Code | Payment Terms Code | Normal | Code | 10 | Payment Terms Code | nvarchar(20) |
Key to join to the Payment Terms table.Show/hide example querySELECT [Standard Customer Sales Code].[Payment Terms Code] ,[Payment Terms].[Code] FROM [CRONUS UK Ltd_$Standard Customer Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Customer Sales Code] LEFT JOIN [CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms] ON [Standard Customer Sales Code].[Payment Terms Code] = [Payment Terms].[Code] | |||||||
8 | Direct Debit Mandate ID | Direct Debit Mandate ID | Normal | Code | 35 | Direct Debit Mandate ID | nvarchar(70) |
9 | Blocked | Blocked | Normal | Boolean | 4 | Blocked | tinyint |
13 | Currency Code | Currency Code | Normal | Code | 10 | Currency Code | nvarchar(20) |
Key to join to the Currency table.Show/hide example querySELECT [Standard Customer Sales Code].[Currency Code] ,[Currency].[Code] FROM [CRONUS UK Ltd_$Standard Customer Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Customer Sales Code] LEFT JOIN [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency] ON [Standard Customer Sales Code].[Currency Code] = [Currency].[Code] | |||||||
15 | Insert Rec. Lines On Quotes | Insert Rec. Lines On Quotes | Normal | Option | 4 | Insert Rec_ Lines On Quotes | int |
Available options are:
| |||||||
16 | Insert Rec. Lines On Orders | Insert Rec. Lines On Orders | Normal | Option | 4 | Insert Rec_ Lines On Orders | int |
Available options are:
| |||||||
17 | Insert Rec. Lines On Invoices | Insert Rec. Lines On Invoices | Normal | Option | 4 | Insert Rec_ Lines On Invoices | int |
Available options are:
| |||||||
18 | Insert Rec. Lines On Cr. Memos | Insert Rec. Lines On Cr. Memos | Normal | Option | 4 | Insert Rec_ Lines On Cr_ Memos | int |
Available options are:
| |||||||
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 [Standard Customer Sales Code].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Standard Customer Sales Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Standard Customer Sales Code] LEFT JOIN [User] AS [User] ON [Standard Customer Sales Code].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |