i have a table1 on the top, but i want to create a view from table 1 as view mentioned beneath the table 2. Could any of you please help me.
table1 | ||||
ID | office | employee | activity | |
1 | 246 | -9999 | 698 | |
2 | ##-99 | 21480 | 698 | |
3 | 104 | -9999 | 7025 | |
4 | ##-99 | 88908 | 7025 | |
5 | 108 | -9999 | 2415 | |
6 | ##-99 | 17135 | 2415 | |
7 | 246 | -9999 | 698 | |
8 | ##-99 | 21480 | 698 | |
9 | 104 | -9999 | 7025 | |
10 | ##-99 | 88908 | 7025 | |
11 | 108 | -9999 | 2415 | |
12 | ##-99 | 17135 | 2415 | |
view | ||||
ID | office | ID1 | employee | activity |
1 | 246 | 2 | 21480 | 698 |
3 | 104 | 4 | 88908 | 7025 |
5 | 108 | 6 | 17135 | 2415 |
7 | 246 | 8 | 21480 | 698 |
9 | 104 | 10 | 88908 | 7025 |
11 | 108 | 12 | 17135 | 2415 |