Microsoft
Software
Hardware
Network
Question : Copy a column to another database
Hi,
I have 2 databases (both identical) one called GAM and one called GAMBK, now due to a programming error 14 columns from a table called contact2 have been 'cleared' to NULL in GAM, however the data still exists in GAMBK which was a backup taken the night before.
So say I have columns AA BB CC and DD in my database and that AA is the unique primary key, how can I copy across data from GAMBK..DD so it sits in GAM.DD based on GAM..AA = GAMBK..AA
I hope this makes sense.
Thanks
Mike
Answer : Copy a column to another database
Hope this helps
update GAM
set BB = t2.BB,
CC = t2.CC,
DD = t2.DD
from GAM t1, GAMBK t2
where t1.AA = t2.AA
Random Solutions
Simple SQL Query Date Command
Where are wireless network connections stored - and can I addone by script
Excel 2002 PivotTable grand total
Brightstor 11.5 - Agent Error -- (318) "Can not get the information from Registry".
Exchange 2003 message receive limitation problem
Windows XP Home SP3 & WinLogon.exe
Event ID 13, Could not access the home directory
Ruby - writing data from array to file
Slipstream XP with sp2 and IE7 plus updates
AJAX Cascading Dropdown Code and Source Data