Microsoft
Software
Hardware
Network
Question : MS SQL 2005 Table Map.
I have the table1 is like this:
Code Name
1 A
2 B
3 C
4 D
5 E
6 F
7 G
and I have another table2:
Code Name
NULL A
NULL B
NULL C
NULL A
NULL E
NULL G
NULL G
So I want to update the code column of the table2:
-->
Code Name
1 A
2 B
3 C
1 A
5 E
7 G
7 G
Please help me, how can I do that?
Answer : MS SQL 2005 Table Map.
oops..
update table2
set Code = (select top 1 table1.Code from table1 where table2.name=table1.name)
Random Solutions
"Windows failed to load b/c a required file is missing or corrupted" CI.dll
Clients not connecting to WSUS
WSUS Clients not reporting to the WSUS console or SBS 2008 Console
How do I convert an INT into a VARCHAR or STRING for use in CASE
ADFIND, DSQUERY or LDAP Querie for Pulling LastLogOn
Extract date and part of the line from a log file
how can i translate gujarati sentence into english sentence ??
Problems after Sharepoint server 2010 install - can not open central administration
Running the System Update readiness tool.
SQL Simple syntax issue - based on Group By / Having