How to compare two fields in Mongo DB. Write a query to retrieve all employee's who have a higher bonus than their base_salary

后端 未结 0 1874
孤独总比滥情好
孤独总比滥情好 2020-12-17 09:35

Assuming documents in a collection called employees have the following fields:

name: required age: required base_salary: required bonus: optional Write a query to ret

相关标签:
回答
  • 消灭零回复
提交回复
热议问题