I want to try querying two tables, like this:
Table A
user_id primary_indicator
------- -----------------
9012445 Y
9012445 N
9012442 N
9012332 Y
9012332 N
9012445
9012332
Table B
access_id user_id
--------- -------
00014359 9012445
00014323 9012442
02349995 9012332
I want to get access_id
where primary_indicator
in table A is 'N'.
How can I do this?