Hi guys,
This should be a really simple problem.
I have a two column table set-up as follows.
What I want to to select the file that has w_id 123 AND w_id 678.
select * from table where w_id=123 AND w_id=678 doesn't work as no row meets such conditions, select * from table where w_id=123 OR w_id=678 doesn't work because severals files meet that condition.
Does anyone have any ideas.
Thanks
This should be a really simple problem.
I have a two column table set-up as follows.
Code:
w_id | file
123 | 100
234 | 101
123 | 102
456 | 100
678 | 104
678 | 100
What I want to to select the file that has w_id 123 AND w_id 678.
select * from table where w_id=123 AND w_id=678 doesn't work as no row meets such conditions, select * from table where w_id=123 OR w_id=678 doesn't work because severals files meet that condition.
Does anyone have any ideas.
Thanks