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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 T-SQL Query/Stored Procedure

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-05 : 00:21:04
Chuck writes "Need to write query which pulls two columns of data from table, e.g. account_number, work_hours, and which groups on the account_number, shows the total work_hours for the account_number and then also shows the percentage those work hours are for all account_numbers. Example:


Account_Number Total Hours Percent of Total
1 50 50
2 25 25
3 25 25


Completely stumped. Any help is appreciated."
   

- Advertisement -