I have tow tables the first d001 has two col:
ACC_ID, ACC_NAME
| |
| |
| |
the secound d002 has four col
DATE ACC_ID_1, ACC_ID_2, ACC_ID_3, ACC_ID_4
| | | | |
| | | | |
| | | | |
HOW i can make view contain
DATE, ACC_NAME1, ACC_NAME_2, ACC_NAME_3, ACC_NAME_4
| | | | |
| | | | |
| | | | |
i try left join but the result is just for one col!!!
You need to left join a total of 4 times!
Having said that, you should look at normalizing the data into 4 rows at your next convenient opportunity to revisit the table structure.