title: select all the employee in all departments which are having highest salary in that department
body: <p>In one of the interviews one person asked me below question</p>
  
  <p>"Write a query to find out all employee in all departments which are having highest salary in that department with department name,employee name and his salary"</p>
  
  <p>It means that there are 100 records in employee table and 10 records in department table.
  So it needs to give me 10 records from query plus if there is no employee in any department it still needs to show that department name.</p>
  
  <p>Thanks</p>