April 30, 2010 at 10:03 am
Hello People,
How do I replace a column of data with new column data in another table .
example : table 1
id1 id2
1 2
3 4
table 2 note: All columns are Int datatype only.
id3
5
6
I want to replace 2 and 4 with 5 and 6.
Thanks for the help.
April 30, 2010 at 10:27 am
What are you trying to do with this replacement!? It hasn't logic to do like that, how many records do you have in both tables what is the right purpose to replace that col!?
Be more specific what are you trying to do with this replacement!
April 30, 2010 at 10:58 am
Table1 has Emp id and table2 has manager id ..
In my scenario i want see the emp who has managers.
Table 1
emp id
2
3
5
table 2
manager id
1
4
null
April 30, 2010 at 11:45 am
I want to replace 2 and 4 with 5 and 6.
--edited and removed when i found out it was homework.
For homework, me pasting a solution helps noone; you never learn the concepts that you'll need later.
show us what you've tried, what you think and what didn't work.
Lowell
April 30, 2010 at 11:59 am
what happens if i have more records. Its my class home work.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply