0
I have little (or no) knowledge in non-relational banks. I need to convert the below query (Sqlite) into an equivalent query to be executed in Mongodb.
SELECT COUNT(*) FROM match_table
WHERE (home_team_api_id=9991 AND home_team_goal > away_team_goal)
OR (away_team_api_id=9991 AND away_team_goal > home_team_goal);
From what I understand, Mongodb does not accept querys with grouping in parentheses, among other "incompatibilities". Is it possible to perform an equivalent query in Mongodb?? Thanks for the help!
So the Mongodb query is comparing the member
away_team_goal
with the string"home_team_goal"
, and vice versa– Marcelo Shiniti Uchimura