title: Relation Does Not Exist PostgreSQL
body: <p>I am working on a LeetCode program that I cannot seem to get to work in PostgreSQL.
   The problem is to find an employee with a salary greater than their manager.
   Here is the table:</p>
  
  <pre><code>| Id | Name  | Salary | ManagerId |
  
  | 1  | Joe   | 70000  | 3         |
  
  | 2  | Henry | 80000  | 4         |
  
  | 3  | Sam   | 60000  | NULL      |
  
  | 4  | Max   | 90000  | NULL      |
  </code></pre>
  
  <p>I've struggled with this for a little bit because this is the code that I am trying:</p>
  
  <pre><code>select e.Name as Employee
  from Employee as e
  ,Employee as e2 
  inner join e2 on e.Id = e2.Id
  and e.Salary &gt; e2.Salary
  </code></pre>
  
  <p>But I keep getting the error that </p>
  
  <blockquote>
    <p>ERROR:  relation "e2" does not exist.</p>
  </blockquote>
  
  <p>Can anyone tell me why this is and what I need to do to get this to work?</p>
  
  <p>Thanks!</p>