title: Stuck in a complex query
body: <p>Return the employees who have had at least 2 distinct orders where some product on the order had quantity >= 5</p>
  
  <p>i have tried group by and having clause but not getting expected results. I have tried the following query and made some changes to it.</p>
  
  <pre><code>SELECT e.EmployeeId, e.EmployeeName, COUNT(op.OrderId) AS orderCount 
  FROM db_order.Employee e
  JOIN db_order.orders o ON e.EmployeeId = o.EmployeeId
  JOIN db_order.orderedproduct op ON op.OrderId = o.OrderId
  WHERE op.quantity &gt;= 5
  GROUP BY o.OrderId
  HAVING orderCount &gt; 1 
  </code></pre>
  
  <p>Output:
  'E0002', 'E. Edwards', '2'</p>
  
  <p>Expected Output:
  E0006, D. Davis, 2</p>