title: Query to calculate profits in a month
body: <p>I have to tables:</p>
  
  <p>Incomes:</p>
  
  <pre><code>| date | incomeAmount |
  </code></pre>
  
  <p>Expenses:</p>
  
  <pre><code>| date | expenseAmount |
  </code></pre>
  
  <p>I would like to sum all my incomes in an especific month using: MONTH(date) = ?</p>
  
  <p>I also need to sum all my expenses in this same month</p>
  
  <p>Then subtract to obtain my profit in the month, with an output table similar to that:</p>
  
  <pre><code>| Month | TotalIncomes | TotalExpenses | Profit |
  </code></pre>
  
  <p>How can I create a SQL Query in order to do this?
  Thank you for all the help!</p>