I've a db with this info (example)
EMAIL COMING
info@domain.com google
test@example.net google
text@example.net yahoo
info@super.net google
testing@foo.com yahoo
testing@foo.com google
I would extract ONLY value that are from "google" for example and not from "yahoo". So, in my SQL, i would read only
info@domain.com
and
info@super.net
because the other are FROM google && yahoo.
So, in code, a thing like
SELECT * FROM mytable WHERE COMING = 'google' AND COMING != 'yahoo'
but obviously my code is wrong.
Could you help me? Thank you :)