Service Cost

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

Table Type: Company

Table Name: Service Cost
Database Table Name: CRONUS UK Ltd_$Service Cost$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 5905

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 Service Cost can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Service Cost$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Code]
   ,[Description]
   ,[Account No_]
   ,[Default Unit Price]
   ,[Default Quantity]
   ,[Unit of Measure Code]
   ,[Cost Type]
   ,[Service Zone Code]
   ,[Default Unit Cost]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Service Cost$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [CRONUS UK Ltd_$Service Cost$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Cost]
LEFT JOIN
   [CRONUS UK Ltd_$Service Zone$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Zone]
      ON
         [Service Cost].[Service Zone Code] = [Service Zone].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Service Cost].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Service Cost].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Service Cost table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Code SearchCodeNormalCode10Codenvarchar(20)
2Description Primary Key SearchDescriptionNormalText100Descriptionnvarchar(200)
3Account No. SearchAccount No.NormalCode20Account No_nvarchar(40)
Key to join to the G/L Account table.

Show/hide example query

SELECT
	       [Service Cost].[Account No_]
	       ,[G/L Account].[No_]
	FROM
	       [CRONUS UK Ltd_$Service Cost$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Cost]
	LEFT JOIN
	       [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
	              ON
	                     [Service Cost].[Account No_] = [G/L Account].[No_]
4Default Unit Price SearchDefault Unit PriceNormalDecimal12Default Unit Pricedecimal(38,38)
5Default Quantity SearchDefault QuantityNormalDecimal12Default Quantitydecimal(38,38)
6Unit of Measure Code SearchUnit of Measure CodeNormalCode10Unit of Measure Codenvarchar(20)
7Cost Type SearchCost TypeNormalOption4Cost Typeint
Available options are:
  • “Travel”
  • “Support”
  • “Other”
8Service Zone Code SearchService Zone CodeNormalCode10Service Zone Codenvarchar(20)
Key to join to the Service Zone table.

Show/hide example query

SELECT
	       [Service Cost].[Service Zone Code]
	       ,[Service Zone].[Code]
	FROM
	       [CRONUS UK Ltd_$Service Cost$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Cost]
	LEFT JOIN
	       [CRONUS UK Ltd_$Service Zone$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Zone]
	              ON
	                     [Service Cost].[Service Zone Code] = [Service Zone].[Code]
9Default Unit Cost SearchDefault Unit CostNormalDecimal12Default Unit Costdecimal(38,38)
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
	       [Service Cost].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$Service Cost$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Service Cost]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Service Cost].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Show/hide tables related from Service Cost table

Leave a Reply

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