I have the following table:
userid title content
1 gender male
1 location NY
2 gender female
2 location SF
3 gender female
3 location NY
I'm trying to retrieve only userid with gender="male" and location="NY"
if I try:
select userid
from table
where content="male"
AND location="NY";
It will return null. Any idea how to do that?