title: Nodejs combine two result of my sql commands
body: <p>I have two mySql command as get result from database, i'm trying to get them with below codes but it doesn't work correctly</p>
  
  <p>for example:</p>
  
  <p>get results from <code>userEwallets</code> table:</p>
  
  <pre><code>function getMoneySenderUserInfo(data, callback) {
      var sourceEwalletNumber = data.transferToEwallet.substring(0, 5) + data.registeredMobileNumber.substring(1, data.registeredMobileNumber.length);
      var query               = "SELECT userEwallets.id as ewalletId, users.id as userId , money_repositories.money as money FROM userEwallets " +
                                "JOIN users ON users.id = userEwallets.userId " +
                                "JOIN money_repositories ON userEwallets.id = money_repositories.ewalletId " +
                                "WHERE ewalletNumber = '" + sourceEwalletNumber + "' ";
      connection.query(query, function (err, results) {
          if (err) return callback(false);
  
          if (results.length === 0) return callback(false);
  
          callback(true, results[0]);
      });
  }
  </code></pre>
  
  <p>get result from <code>userEwallets</code> table again to get other result:</p>
  
  <pre><code>function getDestinationTakeMoneyUserInfo(data, callback) {
      var query = "SELECT users.id as userId FROM userEwallets " +
                  "JOIN users ON users.id = userEwallets.userId " +
                  "WHERE ewalletNumber = '" + data.transferToEwallet + "' ";
      connection.query(query, function (err, results) {
          if (err) return callback(false);
  
          if (results.length === 0) return callback(false);
  
          callback(true, results[0]);
      });
  }
  </code></pre>
  
  <p>now i want to combine this results with this code:</p>
  
  <pre><code>usersInformation = {};
  getMoneySenderUserInfo(data, function (success, result) {
      if (success) {
          usersInformation['senderId']  = result.userId;
          usersInformation['ewalletId'] = result.ewalletId;
          usersInformation['money']     = result.money;
          getDestinationTakeMoneyUserInfo(data, function (success, result) {
              usersInformation['destinationUserId'] = result.userId;
          });
      }
      log.info(usersInformation);
  });
  </code></pre>