Suppose there are the following three PostgreSQL tables to be merged with the common ID column.
table A
ID V1
2 100
3 200
4 250
table B
ID V2
1 200
3 140
table C
ID V3
2 90
3 100
4 10
5 200
I would like to merge these three tables as follows:
merged table
ID V1 V2 V3
1 200
2 100 90
3 200 140 100
4 250 10
5 200
I appreciate your help!