async.parallel for multiple data
<p>This is a async.parallel method to display the shop information and their corresponding images:</p>

<pre><code> function listshops(callback)
        {  
        async.parallel([
        myFirstFunction,
        mySecondFunction,            
        ], function (err,results) {

        console.log(results);
       });


function myFirstFunction(callback) {

        client.connection.query('select * from shop',function(err,data1){
        callback(null,data1);
    });
}


function mySecondFunction(callback) {
    client.connection.query('select * from image',function(err,data2){
        callback(null,data2);

    });
}
</code></pre>

<p>1)My tables=>shop and images: <a href="http://i.stack.imgur.com/F20MU.png" rel="nofollow">http://i.stack.imgur.com/F20MU.png</a></p>

<p>2)output getting for my code.But this is not the output i expected:
    <a href="http://i.stack.imgur.com/ltJpf.png" rel="nofollow">http://i.stack.imgur.com/ltJpf.png</a></p>

<p>3)expected output: <a href="http://i.stack.imgur.com/xAmvu.png" rel="nofollow">http://i.stack.imgur.com/xAmvu.png</a></p>