Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
mike123
Master Smack Fu Yak Hacker
1462 Posts |
Posted - 2002-05-21 : 22:00:31
|
Hello, I have a website I am working on, and it used snitz forums (in case anybody has previous experience) The problem is the original website design held the forum members and the website members in separate tables, now I think for speed reasons I would like to combine the two tables without losing any data. Each username in my first table is also located in my second table. My tables are like sotblUserDetail = UserID,nameOnlineFORUM_MEMBERS = m_name, userIDThe userID in FORUM_MEMBERS is currently null. I need to get all the userID's (which by the way is an identity) from tblUserDetails into FORUM_MEMBERS where tbluserdetail.nameonline equals forum_members.m_name.Cheers!Mike |
|
dsdeming
479 Posts |
Posted - 2002-05-22 : 08:03:46
|
TryUPDATE FORUM_MEMBERS SET FORUM_MEMBERS.User_ID = t.User_IDFROM FORUM_MEMBERS JOIN tblUserDetail t ON t.nameonline = forum_members.m_name |
|
|
mike123
Master Smack Fu Yak Hacker
1462 Posts |
Posted - 2002-05-22 : 12:34:24
|
THANK YOU!!!! |
|
|
|
|
|