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 |
|
genic
Yak Posting Veteran
57 Posts |
Posted - 2001-04-03 : 12:53:28
|
| ok guys, i am looking for distinct profileemails and hours based on if a task is equal to a certain number. at the same time i would like the sum of the hours for each distinct profileemail i find. ie:select distinct profileemail, hours, sum(convert(decimal(10,4), hours)) from projecttime where task = '141' group by profileemail, hoursthis returns all profileemails, hours, and "tries" to sum the hours...but ofcourse it doesnt work. can anyone help me out here? thanks in advance. |
|
|
|
|
|