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 |
immad
Posting Yak Master
230 Posts |
Posted - 2013-11-06 : 05:46:16
|
Helloi want to select a data from a employee table and update that select data to attendlog1 table with match Eidthis is a employee dataEID----------bid26478---------2this is a attendlog dataEID-------------EBID26478------------NULLi want this type of resultEID-------------EBID26478------------2BID and EBID fields are change but values are same.thanksimmad uddin ahmed |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-11-06 : 06:35:21
|
[code]UPDATE aSET EBID = bidFROM employee eINNER JOIN attendlog aON a.EID = e.EID[/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
immad
Posting Yak Master
230 Posts |
Posted - 2013-11-06 : 07:24:37
|
quote: Originally posted by visakh16
UPDATE aSET EBID = bidFROM employee eINNER JOIN attendlog aON a.EID = e.EID ------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs
Thanks :)immad uddin ahmed |
|
|
|
|
|