Hi,
I'm using Access, here's my question !
I have 2 tables calls and connections as :
* calls:
id id_connection_caller id_connection_called
0 0 1
1 0 2
2 2 0
* connections
id address
0 700
1 701
2 702
3 703
I want to make a select that's give me for each call the caller address and the called address as for this example :
- calls_select
id_call address_caller address_called
0 700 701
1 700 702
2 702 700
My problem is that i cannot get fields from 2 connections rows in a single result row with a request as :
SELECT calls.*
FROM connections RIGHT JOIN calls ON (connections.ID = Calls.id_connection_called) AND (Connections.ID = Calls.id_connection_caller);
Can anyone help me ?
Thanks
Guillaume Fillol
Development
I'm using Access, here's my question !
I have 2 tables calls and connections as :
* calls:
id id_connection_caller id_connection_called
0 0 1
1 0 2
2 2 0
* connections
id address
0 700
1 701
2 702
3 703
I want to make a select that's give me for each call the caller address and the called address as for this example :
- calls_select
id_call address_caller address_called
0 700 701
1 700 702
2 702 700
My problem is that i cannot get fields from 2 connections rows in a single result row with a request as :
SELECT calls.*
FROM connections RIGHT JOIN calls ON (connections.ID = Calls.id_connection_called) AND (Connections.ID = Calls.id_connection_caller);
Can anyone help me ?
Thanks
Guillaume Fillol
Development