title: SQL Query: Group by multiple columns in different tables
body: <p>I have two tables Users and Tasks. I need to get the count of tasks grouped by Users.Name and Tasks.Status. I need some help writing query to make my result look similar to the third table.</p>
  
  <p><strong>Users</strong></p>
  
  <pre><code>|- Id -|- Name   -|
  |- 1  -|- Robert -|
  |- 2  -|- Bob    -|
  |- 3  -|- Vicky  -|
  |- 4  -|- Don    -|
  |- 5  -|- Ron    -|
  |- 6  -|- Harry  -|
  </code></pre>
  
  <p><strong>Tasks</strong></p>
  
  <pre><code>|- Id -|- Status     -|- user_id -|
  |- 1  -|- Started    -|- 1       -|
  |- 2  -|- Started    -|- 1       -|
  |- 3  -|- Started    -|- 2       -|
  |- 4  -|- Started    -|- 2       -|
  |- 3  -|- Complete   -|- 1       -|
  |- 4  -|- Complete   -|- 1       -|
  |- 5  -|- Complete   -|- 2       -| 
  |- 6  -|- Complete   -|- 2       -|
  </code></pre>
  
  <p><strong>Result</strong></p>
  
  <pre><code>|- Name   -|- Status   -|- Count -|
  |- Robert -|- Complete -|- 2     -|
  |- Robert -|- Started  -|- 2     -|
  |- Bob    -|- Complete -|- 2     -|
  |- Bob    -|- Started  -|- 2     -|
  |- Vicky  -|- Complete -|- 0     -|
  |- Vicky  -|- Started  -|- 0     -|
  |- Don    -|- Complete -|- 0     -|
  |- Don    -|- Started  -|- 0     -|
  |- Ron    -|- Complete -|- 0     -|
  |- Ron    -|- Started  -|- 0     -|
  |- Harry  -|- Complete -|- 0     -|
  |- Harry  -|- Started  -|- 0     -|
  </code></pre>