Hello everyone!
I need your help..
I have a SUM select query but the data type is NVARCHAR. in mssql it is recommended to use CAST, what if on AX?
select TransId,PRODUCTID,Sum(Cast(Qty As Decimal(10,2))),Sum(Cast(QTYSCAN As Decimal(10,2)),TransType
from TempBarcode1
group by TempBarcode1.TransId,TempBarcode1.PRODUCTID,TempBarcode1.TransType
where TempBarcode1.TransType == 'PickingListRegistrasi' &&
TempBarcode1.TransID == SalesParmTable.SalesId
Thanks!
*This post is locked for comments