I have the following mysql table:
Products
ID -- NAME -- INSTOCK -- REFERER -- DISCOUNT
1 -- pen -- 1 -- google.com -- 50
2 -- mouse -- 0 -- google.ca -- 30
3 -- keyboard -- 1 -- google.ca -- 30
4 -- screen -- 1 -- yahoo.com -- 50
5 -- mother board -- 1 -- yahoo.ca -- 30
6 -- printer -- 1 -- google.com --30
What I'm trying to get is all the rows that have:
INSTOCK equals 1 and the REFERER equals google.com and google.ca
How can I do this?
Thanks a lot