title: how to do joins on Firebase tables
body: <p>I am trying to get data from two tables like (fetch all users and their details)</p>
  
  <pre><code>tableOne.on('users', function (snapshot) {
      userId = snapshot.val().userId; // line 1 (results like 1,2,3,4,5,6)
      anotherTable.child('userdetails').child(userId).once('value', function(mediaSnap) {
       // result // line 2
   });
  });
  </code></pre>
  
  <p>but the problem is line 1 executes first for the 6 times and then line 2 that n times resulting in everytime looking for 'where user id is - 6'...isn't joins supported in Firebase?</p>
  
  <p>Any help is apreciated</p>