title: How to solve this Error in Linq : Operator '!=' cannot be applied to operands of type 'int' and 'System.Linq.IQueryable<int>'
body: <pre><code>var ll = from a in db.EmployeeMasters
           where a.EmployeeID != (from d in db.EmployeeMasters
                                  join c in db.PerformanceDetails on d.EmployeeID equals c.EmployeeID
                                  join z in db.ProjectMasters on c.ProjectID equals z.ProjectID
                                  into ss
                                  from z in ss.DefaultIfEmpty()
                                  where z.ProjectName == name || z.ProjectName == name1
                                  select d.EmployeeID)
           select a.EmployeeName;
  </code></pre>
  
  <p>It returns an error messages like below</p>
  
  <blockquote>
    <p>Operator '!=' cannot be applied to operands of type 'int' and 'System.Linq.IQueryable'   </p>
  </blockquote>
  
  <p>I want to add this Linq query in http post method to view output in postman
  Anyone Please help me to solve this</p>
  
  <p>Actual question is select employees who are not part of 2 projects like (CRM, Automation)</p>
  
  <p>Part of both project employees are in another project but some of the employees not in any projects</p>
  
  <p>My Entity Framework Data Model is shown here:</p>
  
  <p><a href="https://i.stack.imgur.com/ANN2V.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ANN2V.jpg" alt="enter image description here"></a></p>
  
  <p>name and name1 are given parameters for project names</p>