There is an databese table;
> == id || customer_number || account_type || balance
> == 1 - 123456 - 1 - 100
> == 2 - 123457 - 1 - 200
> == 3 - 123456 - 3 - 200
> == 4 - 123456 - 4 - 220
> == 5 - 123456 - 5 - 250
> == 6 - 123457 - 2 - 200
How can I select the customers that have at least one of the types of {1 and 5} ?
If you want customers with accounts of type 1 OR 5:
[EDIT] If you want customers with accounts of type 1 AND 5: