0

I am Firebase newbie. I want to retrieve data which is 2016 year and month is february and its location. I using android studio.

How can I solve this problem?

enter image description here

ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56
Yeoh
  • 21
  • 3
  • 3
    Welcome to Stack Overflow! Your question shows [no attempt](//idownvotedbecau.se/noattempt/) of solving the problem. If you have made an attempt, you should edit our question to detail exactly what you did, researched for, and point to any links that were helpful but that did not answer your question. If you’ve tried to code a solution, that should be added in an edit. Your attempts should be turned into a [MCVE](//stackoverflow.com/help/mcve) so it is clear to read and understand. Also read the [Stack Overflow question checklist](//meta.stackoverflow.com/questions/260648) – Filnor Nov 29 '17 at 08:29
  • It looks like you're trying to filter on two property. The Firebase Realtime Database can only order/query on a single property. Luckily you can combine your two properties into one, and filter on that: `"YEAR_MONTH": "201502"`. Also see: Firebase Database queries can only order/filter on a single property. In many cases it is possible to combine the values you want to filter on into a single (synthetic) property. For an example of this and other approaches, see my answer here: http://stackoverflow.com/questions/26700924/query-based-on-multiple-where-clauses-in-firebase – Frank van Puffelen Nov 29 '17 at 15:32

0 Answers0