Replies: 1 comment
-
Try multiple joins like this -
One column join in first join and in second column join in second join query. Let me know if this does not work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
How can i join 2 tables on multiple columns?
For example
var results = await jsstoreCon.select({
from: "Order_Details",
join:{
with:"Order_Details_Options",
on: 'Order_Details.order_id=Order_Details_Options.order_id AND Order_Details.id=Order_Details_Options.order_details_line_id',
as: {
id: "DetailsID",
name:"DetailsName",
product_id:"DetailsProdID"
}
}
});
Beta Was this translation helpful? Give feedback.
All reactions