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?