title: How to Get Sum of Specific Records and Sum of all Records in One Query?
body: <p>I Have Table ( <strong>emp</strong> ):</p>
  
  <p><a href="https://i.stack.imgur.com/7E6BF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7E6BF.png" alt="emp Table"></a></p>
  
  <p>I want to get <strong>First Column</strong> </p>
  
  <ul>
  <li><strong>DeptNo</strong></li>
  </ul>
  
  <p>Second Column  </p>
  
  <ul>
  <li><strong>SUM of salaries of the employees of each department whose name start with 'A'</strong></li>
  </ul>
  
  <p>and Third column </p>
  
  <ul>
  <li><strong>Total Salaries of all the employees of that department</strong></li>
  </ul>
  
  <p>I am able to Get first and second Column but unable to get Thiird column with same Query:</p>
  
  <pre><code>SELECT DeptNo, SUM(Salary) AS 'Name Contains A', SUM(Salary) AS 'Total Salary'
  FROM emp
  WHERE Ename LIKE 'A%' 
  GROUP BY DeptNo
  </code></pre>
  
  <p>Any Suggestions how can i do this? </p>