You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to find rows from table 1 which does not exist in table 2. depending on two columns.
I'm trying to build a query in objection js but not getting the required answer. and the entries are same but column names are different.
Here is my query :-
let miniShift = await createModel.query()
.select('txnShiftUniqueId', 'shiftName', 'laneName', 'txnDate', 'txnShiftDetail.uidCby')
.leftJoin('mstShift', 'mstShift.shiftId', 'txnShiftDetail.shiftId')
.leftJoin('pmtrLane', 'pmtrLane.isEnabled', 'txnShiftDetail.isEnabled')
.whereNotIn('txnShiftDetail.shiftId', ['txnCashup'])
.whereNotIn('txnShiftDetail.laneId', ['txnCashup'])
.whereNotIn('txnShiftDetail.uidCby', ['txnCashup'])
The text was updated successfully, but these errors were encountered:
i want to find rows from table 1 which does not exist in table 2. depending on two columns.
I'm trying to build a query in objection js but not getting the required answer. and the entries are same but column names are different.
Here is my query :-
let miniShift = await createModel.query()
.select('txnShiftUniqueId', 'shiftName', 'laneName', 'txnDate', 'txnShiftDetail.uidCby')
.leftJoin('mstShift', 'mstShift.shiftId', 'txnShiftDetail.shiftId')
.leftJoin('pmtrLane', 'pmtrLane.isEnabled', 'txnShiftDetail.isEnabled')
.whereNotIn('txnShiftDetail.shiftId', ['txnCashup'])
.whereNotIn('txnShiftDetail.laneId', ['txnCashup'])
.whereNotIn('txnShiftDetail.uidCby', ['txnCashup'])
The text was updated successfully, but these errors were encountered: