Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: Prefix Or Suffix In The Results Of A Query

$
0
0

Try this,

 

SELECT DISTINCT T0.[Printed],

T0.[DueDate],

T0.[DocNum] as 'Prod ord#',

T0.[U_CustName],

T0.PlannedQty as 'Qty',

T0.[ItemCode],

T0.[U_Colour_Desc],

T0.[Comments],

left((cast((T1.[PlannedQty]/60) as varchar)), (len(cast((T1.[PlannedQty]/60) as varchar))-7))+' Hours' as 'Time Allocated',

T0.[Status] as 'Stat'

FROM OWOR T0 INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry

WHERE T1.[ItemCode] = 'SUNDRY LABOUR' and T0.[Status] != 'L' and T0.[Status] != 'C' and T0.DueDate between [%0] and [%1]

GROUP BY T0.[DueDate], T0.[Printed],

T0.[DocNum],

T0.[OriginNum] ,

T0.[U_CustOrd],

T0.PlannedQty ,

T0.[ItemCode],

T0.[U_Type],

T0.[U_Colour],

T0.[U_Colour_Desc],

T0.[Comments],

T1.[PlannedQty],

T0.[Status],

T0.[U_CustName],

T0.[Status]

 

Regards,


Viewing all articles
Browse latest Browse all 8581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>