One export has the orders, another has the users, and the only thing they share is a number. I do not want a database just for that.
With users.json holding [{"id":1,"name":"Anna"},{"id":2,"name":"Bram"}] and orders.json holding [{"user_id":2,"total":12},{"user_id":1,"total":30}]:
jq -c --slurpfile u users.json '
($u[0] | INDEX(.id|tostring)) as $by
| .[]
| {total, name: $by[.user_id|tostring].name}
' orders.json
The result:
{"total":12,"name":"Bram"}
{"total":30,"name":"Anna"}
--slurpfile u reads the second file into $u. It wraps everything in an array, hence the $u[0]. INDEX builds a lookup object keyed by id, and keys must be strings, which is why both sides go through tostring.
An order whose user is missing still comes out, with "name":null. If you would rather drop those, add select(.name) at the end. If two users share an id, the later one wins without any warning, so check your data when the numbers look odd. Both files are held in memory.
Further reading: jq manual