sql 与EchoOptimizer.dbo.tblloads中最常用字段关联的定义和连接。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql 与EchoOptimizer.dbo.tblloads中最常用字段关联的定义和连接。相关的知识,希望对你有一定的参考价值。
--=================================================
-- Creator: Megan Danczyk
-- Created Date: 3/19/19
-- Modified Date: --
-- Purpose: Data Dictionary for tblloads. Most commonly used fields included.
-- Modified Reason:
--=================================================
SELECT TOP 100
LoadGuId --Unique Identifier Used for connection (Primary Key)
,LoadId --Unique integer recognized in user interfaces
,HazMat --BIT (1 = Hazmat Load, 0 = Non-Hazmat Load)
,[Status] --Status of Load (full list located in dbo.tblloadstatus)
,OrderBy --Unique Identifier - joined to dbo.tblusers to identify who ordered the load
,OwnerGuId --Unique Identifier - joined to dbo.tblusers to identify who owned the load at the time of the shipment
,CreatedBy --Unique Identifier - joined to dbo.tblusers to identify who created the load
,CreatedDate --Optimzier Creation Date
,RatingCode --Used for unique reporting
,Mode --Mode of shipment (full list located in dbo.Mode)
,BookedDate --Last recorded book date for load (final book date overwrites previous booked dates)
,CancelDate --Cancel Date of Load
,DeliveryDate --Delivery Date of load, related to invoice status
,DeliveryReadyByDate --Original Beginning Delivery Date Appt
,DeliveryBydate --Origianl End Delivery Date Appt
,PickUpByDate --Original Start Pickup Date Appt
,PickupReadyByDate --Original End Pickup Date Appt
,Distance --Distance in Miles Entered into load by Rep (PCMiler suggested miles CAN be modified)
,OriginAddressId --AddressId tied to origin location (shortcut link to tbladdress to skip warehouse joins)
,DestinationAddressId --AddressId tied to destination location (shortcut link to tbladdress to skip warehouse joins)
,Revenue --Dynamic Revenue in load (no invoices or load status calculated)
,Cogs --Dynamic COGS in load (no invoices or load status calculated)
,FinancialStatusId --Billing Status of Load
,BookingAgent --Unique Identifier - joined to dbo.tblusers to identify who the final booking rep was on the load
,BookedSalesPerson --Unique Identifier - joined to dbo.tblusers to identify POSSIBLY a rep who booked the load. (Confusing on bounced loads and in different modes)
,TrailorNumber --Trailer Number associated with booked carrier
,TractorNumber --Tractor Number associated with booked carrier
,OfficeId --OfficeId associated with rep who owned the load at the time. Join to dbo.tbloffices to decode
,CancelledReason --CanceilId decoded with dbo.tblLoadCancelReason.
,CancelledBy --Unique Identifier - joined to dbo.tblusers to identify who cancelled the load
,MaxBuy --Final Max Buy Set By Sales Rep
,AccountBillingRep --Account Billing Rep at time of load
,BusinessUnitID --BusinessUnitId associated with rep who owned the load at the time. Join to dbo.tblbusinessunits to decode
,OriginLoadStopId --LoadStopId associated with first pickup
,DestinationLoadStopId --LoadStopId associated with final drop
FROM EchoOptimizer.dbo.tblLoads
以上是关于sql 与EchoOptimizer.dbo.tblloads中最常用字段关联的定义和连接。的主要内容,如果未能解决你的问题,请参考以下文章