mysql - need query to find sum and count of transactions on daily basis for a month -


    select      s.merchant,     s.tran_amount,     s.tran_count,     s.date,     a.mid,     m.sales_person,     m.mercinfo_legalname,     m.mercinfo_dba_name,     c.codedesc,     ad.phoneno,     ad.city,     ad.state,     ad.contact_name,     tid     (select          t.merchant merchant,             sum(t.f_txn_amount) tran_amount,             count(t.id_v2_wc_transaction) tran_count,             t.f_txn_datetime date             bijlipay.bij_v2_wc_transaction t             t.f_txn_amount > 10             , date(t.f_txn_datetime) = '2016-03-08'             , t.f_trx_type = '1240/110'     group merchant) s,     bijlipay.bij_merchant m,     bijlipay.bij_address ad,     bijlipay.bij_codeset c,     bijlipay.bij_device_allocation     m.id_merchant = s.merchant         , ad.id_address = m.mercinfo_permanent_address         , c.codename = m.mercinfo_mcc         , a.merchant_id = s.merchant group s.merchant; 

this query result need sum , count day-wise month


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -