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 |
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2007-03-12 : 09:26:10
|
Ian writes "I have this update query that is giving 'Operation must use an updateable query'UPDATE tblFFs SET tblFFs.FSrptTopHoldingHeight = (SELECT Count(tblTopHoldings.FundCode) as CNTFROM tblTopHoldingsWHERE tblTopHoldings.FundCode=tblFFs.FundCodeGROUP BY tblTopHoldings.FundCode)any ideasThanksIanSQL 7, Windows 2000 SP4" |
|
mk_garg20
Constraint Violating Yak Guru
343 Posts |
Posted - 2007-03-12 : 23:14:21
|
It should wordUPDATE tblFFs SET tblFFs.FSrptTopHoldingHeight = A.CNTFROM tblFFs tINNER join ( SELECT FundCode, Count(FundCode) as CNT FROM tblTopHoldings GROUP BY FundCode) A ON A.FundCode=t.FundCode mk_garg |
 |
|
|
|
|