HI
I’m a newbie to AX2012, what’s the coorect way to run this SQL query on AX? Can this be run directly like in SQL Server? Is the sintax Correct for AX, what would be the correct way to do this?
SELECT A.PurchReqId, A.PurchReqName, A.Name, A.RequisitionStatus, A.RequisitionPurpose, A.CreatedDateTime,
(SELECT B.UserId FROM B
UNION
SELECT C.Originator FROM C)
FROM PurchReqTable AS A
OUTER JOIN WorkflowWorkItemTable AS B
ON A.RecId = B.RefRecId
OUTER JOIN WorkflowTrackingStatusTable AS C
ON A.RecId = C.ContextRecId
Please your urgent help is greatly appreciated.
Best regards