Newbie SQL Query question: I'm using Oracle SQL Developer.
I have a table:
<name> <color>
steve red
mark red
steve green
john red
ryan red
What I would like to do is have the results only display the names that contain RED in the color column.
The results would be:
mark
john
ryan
Since steve has a color green as well, it would not show up.
Anyone out there knows?
EDIT:
THANK YOU FOR THE ANSWERS. I do see that I should have said "red and no other color" in the results. Sorry for the confusion but thank you for the super speedy replies!
SELECT ... WHEREquery.