I have two tables t
and t1
.
Say that t
contains the following data
id name a b c o p
1 'John' 1 1 1 23 5
and t1
id1 a1 b1 c1 o1
1 6 7 2 23
2 9 3 7 23
3 25 7 12 2
I am looking to get the table t
after some operations as the following example :
id name a b c o
1 'John' 1 1 1 23
2 'John' 6 7 2 23
3 'John' 9 3 7 23
My purpose is insert new columns into t where t1.o1=t.o
.
Any idea ? I need to use stored procedure ?
try it. hope that will work.. – HackerGK Dec 10 '13 at 09:16