Posted by markc600 on 12/18/06 16:30
select date, user, sum(case when transaction_type ='debit' then amount else 0 end) / sum(amount) as perc_Debit from mytable group by date, user
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming