Click here to Skip to main content
15,908,618 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi frds,

i have two table like;

id name age in table1


and
id address salary in table2.

now i want copy the age column from table1 and add it to the table2.

Thanks in advance....
Posted
Updated 14-Feb-14 18:00pm
v2
Comments
OriginalGriff 14-Feb-14 7:43am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Perhaps an example of the table data, with the output you want would help?
Use the "Improve question" widget to edit your question and provide better information.
Vedat Ozan Oner 14-Feb-14 8:27am    
I couldn't understand the question. What do you mean by 'display in another table'? do you want to join these two table in a query?

1 solution

SQL
select T2.Id, T2.address, T2.Salary, T1.age
from table1 as T1
inner join from table2 as T2 on T1.Id = T2.Id
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900