MySQL count/sum fields?

No need for correlated subqueries, just use group by select t. Payment_type_id as type_id ,sum(t. Amount) as total_cash ,count(*) as total_cash_transactions from TRANSACTION t where t.

Date = '2010-05-01' group by t. Payment_type_id You can then join the result with payment_type if you need to get the type names from there.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions