How to return 2 lines even if one line is null but the other > 0
item_id | location | quantity
-------------------------------------
14 | 1 | 10
14 | 2 | <null>
21 | 1 | <null>
21 | 2 | <null>
The result should return:
item_id | location | quantity
-------------------------------------
14 | 1 | 10
14 | 2 | <null>
I need a query with a clause where quantity > 0. If quantity is null on location 1 and 2 do not return, if quantity > 0 in one location return both lines. I have 10 locations (1 to 10) and I need to look quantity where location in (1,2).