Hi there..
Was wondering whether anyone can help on a simple (i hope) SQL problem here
i have 4 tables,
tablea | tableb | tablec
idx1 value | idx2 idx1 | idx3 idx2
1 ab | 22 1 | 444 22
2 bc | 33 2 | 555 33
3 de | 44 3 | 666 22
4 fg | |
tabled
key name
122444 alex
233555 smith
122666 alan
344 max
4 tom
Note: idx does not mean index.. its just a column name
Table B is refernced by table A by idx1
Table C is reference by table B by idx2
what i need is to select/create a view that will give an output of:
idx1 idx2 idx3 name
1 22 444 alex
2 33 555 smith
1 22 666 alan
3 44 null max
4 null null tom
as it can be seen, the key of table d to get the name is the concatenation
of a string of referenced/related idx1, idx2 and idx3
Anybody can help me here?
Thanks
JD
Was wondering whether anyone can help on a simple (i hope) SQL problem here
i have 4 tables,
tablea | tableb | tablec
idx1 value | idx2 idx1 | idx3 idx2
1 ab | 22 1 | 444 22
2 bc | 33 2 | 555 33
3 de | 44 3 | 666 22
4 fg | |
tabled
key name
122444 alex
233555 smith
122666 alan
344 max
4 tom
Note: idx does not mean index.. its just a column name
Table B is refernced by table A by idx1
Table C is reference by table B by idx2
what i need is to select/create a view that will give an output of:
idx1 idx2 idx3 name
1 22 444 alex
2 33 555 smith
1 22 666 alan
3 44 null max
4 null null tom
as it can be seen, the key of table d to get the name is the concatenation
of a string of referenced/related idx1, idx2 and idx3
Anybody can help me here?
Thanks
JD