Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

SQL query in X++ help required

$
0
0

I have the following query that i am running fine in SQL Server

Select * from Inventtransorigin ito
join  inventtrans it on it.INVENTTRANSORIGIN = ito.recid
where it.DATEPHYSICAL = '' and it.DATEINVENT = '' and ito.REFERENCEID = '' and ito.REFERENCECATEGORY = '150';


In X++ i'm running

static void SUPJob(Args _args)
{
    Inventtransorigin ito;
    InventTrans it;
    ;
    
    Select * from ito
    join it where it.INVENTTRANSORIGIN == ito.recid &&
    it.DATEPHYSICAL == "" && it.DATEINVENT == "" && ito.REFERENCEID == "" &&  ito.REFERENCECATEGORY == "150";
}


Unfortunately i get the error 'operand types are not compatible with the operator'

Can anyone recommend the best method to run this query?


Viewing all articles
Browse latest Browse all 72043

Trending Articles