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 |
Abid
110 Posts |
Posted - 2014-03-09 : 22:05:11
|
Hi. I have a table ProductBasicInfo, which has following fields:ProdID (PK)ProdNameDescriptionManufacturerStoreProdPrice Now i have another table TempPrice, having fields:TempID (PK)ProdID (FK)TempProdPrice TempPrice table has the original values, which are needed to copy into ProductBasicInfo column "ProdPrice" (which is entire NULL column so far). Please assist me that how to do this. Thanks in advance. |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2014-03-09 : 23:36:14
|
[code]UPDATE pSET ProdPrice = t.TempProdPriceFROM ProductBasicInfo pINNER JOIN TempPrice t ON p.ProdID = t.ProdID[/code] KH[spoiler]Time is always against us[/spoiler] |
|
|
Abid
110 Posts |
Posted - 2014-03-10 : 06:02:05
|
Thanks khtan, would you please tell me that what is P and what is t??? |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2014-03-10 : 06:26:52
|
table alias KH[spoiler]Time is always against us[/spoiler] |
|
|
Abid
110 Posts |
Posted - 2014-03-10 : 07:11:17
|
quote: Originally posted by khtan table alias
Sorry, but what is table alias? |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
|
|