MySQL subquery with IN and NOT IN operators
If a subquery returns more than one value, you can use other operators such as IN or NOT IN operator in the WHERE clause. For example, you can use a subquery with NOT IN operator to find customer who has not ordered any products as follows: