title: SQL Query to compare two rows under different condition
body: <p>I need a query to retrieve the values from below table</p>
  
  <p><img src="https://i.stack.imgur.com/R95Yh.png" alt="enter image description here"></p>
  
  <p>I need a query to count total number of  projects whose sum(total days) in the location 1 greater than  sum(totaldays) in  the location 2.</p>
  
  <p>Please help me</p>