If I have TableA with id A_ID and TableB with id B_ID and Foreign Key A_ID creating the relationship. TableB had a fields FieldC which could have value x, y or z.
What I want is a query that brings back one row where the IDs match with a column showing the B_ID where FieldC is x and another where FieldC is y:
eg
Table1:
A_ID
1
2
3
Table2:
B_ID, A_ID, Field_C
1, 1, x
2, 1, y
3, 1, z
4, 3, y
Query:
aID, Xistrueid, Yidtrueid
1, 1, 2
3, null, 4
How do i do this? Hope that makes sence!!
cheers
steve