When I run the following simple query:
SELECT gateway, customer_id
FROM gateways
where gateway = '1000056'
Here's the record it returns, showing a [null] customer ID:
When I add another filter, the record is no longer returned, but I think it SHOULD STILL be returned since the customer_id is not equal to 21 :
SELECT gateway, customer_id
FROM gateways
where gateway = '1000056'
and customer_id != 21 --new filter!
The record is no longer returned:
How can I filter out records whose customer_id = 21, but still return this record where customer_id = [null]?


