Click here to Skip to main content
15,884,629 members
Home / Discussions / Database
   

Database

 
AnswerRe: TO STORE IMAGES FROM FOLDER TO DATA BASE Pin
Vasudevan Deepak Kumar5-Oct-07 3:39
Vasudevan Deepak Kumar5-Oct-07 3:39 
AnswerRe: TO STORE IMAGES FROM FOLDER TO DATA BASE Pin
Paul Conrad7-Oct-07 11:09
professionalPaul Conrad7-Oct-07 11:09 
QuestionUpdating one Dataset from another Dataset. Pin
Hemant.Kamalakar5-Oct-07 2:11
Hemant.Kamalakar5-Oct-07 2:11 
AnswerRe: Updating one Dataset from another Dataset. Pin
Kschuler5-Oct-07 6:18
Kschuler5-Oct-07 6:18 
GeneralRe: Updating one Dataset from another Dataset. Pin
Hemant.Kamalakar5-Oct-07 19:30
Hemant.Kamalakar5-Oct-07 19:30 
GeneralRe: Updating one Dataset from another Dataset. Pin
Hemant.Kamalakar15-Oct-07 2:05
Hemant.Kamalakar15-Oct-07 2:05 
GeneralRe: Updating one Dataset from another Dataset. Pin
Kschuler15-Oct-07 3:15
Kschuler15-Oct-07 3:15 
Questionhow to update a sum value from join tables? Pin
Eunice (VB junior)5-Oct-07 0:07
Eunice (VB junior)5-Oct-07 0:07 
Hi,
I wrote this update query. But it doesn't work.
The error message : An aggregate may not appear in the set list of an UPDATE statement.

Here is my query.
update udtStudent set score=sum(b.studentscore)
from udtStudent a inner join udtQuestionHistory b on a.testid=b.testid and a.empno=b.empno
where a.score is null
group by b.empno,b.testid

i wish to update the score = sum of studentscore from udtQuestionHistory

the problem is at sum().Can anyone advice me how should i overcome it?
Thanks in advance.

thanks.
AnswerRe: how to update a sum value from join tables? Pin
Joe5-Oct-07 1:00
Joe5-Oct-07 1:00 
GeneralRe: how to update a sum value from join tables? Pin
Eunice (VB junior)8-Oct-07 16:18
Eunice (VB junior)8-Oct-07 16:18 
AnswerRe: how to update a sum value from join tables? Pin
pmarfleet5-Oct-07 1:02
pmarfleet5-Oct-07 1:02 
GeneralRe: how to update a sum value from join tables? Pin
Eunice (VB junior)8-Oct-07 16:20
Eunice (VB junior)8-Oct-07 16:20 
Questiondate format Pin
Sonia Gupta4-Oct-07 23:19
Sonia Gupta4-Oct-07 23:19 
AnswerRe: date format Pin
N a v a n e e t h5-Oct-07 0:29
N a v a n e e t h5-Oct-07 0:29 
Questionretrive data with the help of pointer Pin
syibu4-Oct-07 22:35
syibu4-Oct-07 22:35 
Questionhow to update statement from subselect? Pin
Eunice (VB junior)4-Oct-07 22:29
Eunice (VB junior)4-Oct-07 22:29 
AnswerRe: how to update statement from subselect? Pin
MatthysDT5-Oct-07 1:59
MatthysDT5-Oct-07 1:59 
GeneralRe: how to update statement from subselect? Pin
Eunice (VB junior)8-Oct-07 16:22
Eunice (VB junior)8-Oct-07 16:22 
AnswerRe: how to update statement from subselect? Pin
GuyThiebaut5-Oct-07 9:59
professionalGuyThiebaut5-Oct-07 9:59 
GeneralRe: how to update statement from subselect? [modified] Pin
Eunice (VB junior)8-Oct-07 15:45
Eunice (VB junior)8-Oct-07 15:45 
GeneralRe: how to update statement from subselect? Pin
GuyThiebaut8-Oct-07 22:42
professionalGuyThiebaut8-Oct-07 22:42 
Questionalteration of date format in table column Pin
Sonia Gupta4-Oct-07 21:57
Sonia Gupta4-Oct-07 21:57 
AnswerRe: alteration of date format in table column Pin
Colin Angus Mackay4-Oct-07 22:08
Colin Angus Mackay4-Oct-07 22:08 
AnswerRe: alteration of date format in table column Pin
Imran Khan Pathan4-Oct-07 23:08
Imran Khan Pathan4-Oct-07 23:08 
GeneralRe: alteration of date format in table column Pin
Sonia Gupta4-Oct-07 23:22
Sonia Gupta4-Oct-07 23:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.