On Thursday, 11 February 2016 15:26:12 UTC+11, kanthu wrote:
Convert sql query which involves 3 tables to mongo query [mongo 3.0 version] using aggregation. In mongodb Acc is the actual collection which has subscr and dv as embedded collections
Hi,
An effective data model in MongoDB will support your use case, and likely look significantly different from the relational model implied by your SQL query.
Rather than trying to directly translate SQL queries that presume normalized data, I would encourage you to consider Data Models in MongoDB as a starting point.
If you do have a question about MongoDB usage, you’ll need to provide more information:
a sample document showing how your data is structured in MongoDB
a sample of your desired result
details on what you’ve tried so far
Regards,
Stephen