Reputation: 3
For example:
SELECT
t.a
,t.b
,t.c
FROM table t
WHERE (t.a and t.c) = 'value'
If i just do two lines in the where clause its not quite right, i only need to select when they are BOTH the same and not when its one or the other
Upvotes: 0
Views: 64
Reputation: 5151
Just change this
WHERE (t.a and t.c) = 'value'
to this
WHERE t.a='value' and t.c='value'
Upvotes: 1