阅读:2553
回复:5
|
[BUG反馈]在流程分析中做了个查询,sql语句没有用到order by,但是提示如下信息图片:捕获1111.JPG |
2楼#
发布于:2016-11-18 17:25
SELECT
B.SequenceNo, A.NPD_Code, isnull((select name from OT_User WHERE ObjectID=A.CreatedBy),'') CreatedByName, ISNULL((SELECT NAME FROM OT_User WHERE ObjectID=A.NPD_Charge),'')ChargeName, A.NPD_ProductDevType, A.NPD_ProductDevPurpose, A.NPD_PreQty, A.NPD_MarketPrice, A.NPD_MarketCost, A.NPD_TargetUnit, A.NPD_ProductDevPurpose, A.NPD_PreCostX1, A.NPD_DevContinue ,A.NPD_DevContinueReason ,A.NPD_Puller ,A.NPD_TrialOrder ,A.NPD_PilotRun ,A.NPD_CostAccountingX2 ,A.NPD_PilotRunContinue ,A.NPD_PilotRunContinueRemark ,A.NPD_MassProduction ,A.NPD_MassProductionPass ,A.NPD_Redevelop ,A.NPD_CostAccountingX3 ,A.NPD_IsTechFeasibility ,A.NPD_BU ,A.NPD_SampleRequestQty ,A.NPD_PullerSendDate ,A.NPD_SampleSendDate ,A.NPD_SampleOrder ,A.NPD_SampleItem ,A.NPD_IsBackEnd ,A.NPD_PilotRunContinue1 ,A.NPD_PilotRunContinueRemark1 ,A.NPD_IsTurnRoutine ,A.NPD_PullerSeqNum ,A.NPD_SampleOrderDate ,A.NPD_IsNewProduct ,A.NPD_IsMatchColorsAtt ,State=case B.state when 4 then '已完成' when 5 then '已取消' else '未完成' end ,C.Comment FROM dbo.I_NewProductDev A LEFT OUTER JOIN OT_InstanceContext B ON A.ObjectID=B.BizObjectId LEFT OUTER JOIN v_InstanseComment C ON A.ObjectID =C.BizObjectId |
|
5楼#
发布于:2018-06-05 08:57
|
|