title: How to do the following query in Firebase? (more than one where condition)
body: <p>Consider following firebase structure :</p>
  
  <pre><code>{
    "users" : {
      "00:03:aa:dc:1c:2b" : {
        "firstName" : " Ofek",
        "groupName" : "thailand",
        "lastName" : "Ron",
        "registration" : {
          "type" : "regular",
          "time" : 1418288589636
        },
        "phoneNumber" : "345345345"
      },
      "04:46:65:8D:60:C6" : {
        "firstName" : " Ofek",
        "groupName" : "thailand",
        "lastName" : "Ron",
         "registration" : {
          "type" : "regular",
          "time" : 1418288589630
        },
        "phoneNumber" : "345345345"
      },
    }
  }
  </code></pre>
  
  <p>how do you implement the following query :</p>
  
  <pre><code>SELECT * FROM USERS WHERE groupName="thailand" and registration.time&gt;=1418288589631
  </code></pre>
  
  <p>I was trying to do it like this :</p>
  
  <pre><code>fireBase.orderByChild("groupName").startAt("thailand").endAt("thailand").orderByChild("time").startAt("1418288589631")
  </code></pre>
  
  <p>but that threw an exception since firebase doesnt allow multiple orderbys...</p>
  
  <p>Any ideas?</p>