SELECT right(barcode,5) AS barcode, assettype."aname" AS aname FROM "public"."assettype" assettype INNER JOIN "public"."asset" asset ON assettype."id" = asset."assettype_id" WHERE asset."client_id" = $P!{LoggedInUserAttribute_ClientID} and aname = 'Micro DPC' and SUBSTRING(barcode,7,3) IN ('JAN','FEB','APR','MAY','JUN','JUL','AUG', 'SEP','OCT','NOV','DEC') order by right(convert(datetime,'15' + 'barcode', 6),5)
right(convert(datetime,'15' + 'barcode', 6),5)
convert(datetime,'15' + right( 'barcode', 5),6)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)