Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

getting count

$
0
0

hi every one ,

 im doing a project in which backend is mysql i have a problem , i some how managed to find the querry..

this is the querry 

SELECT convert count(t.custID as custid,t.merchant as merchant,m.mName as mName, c.cname as cname,t.eDT as eDT,t.term as term , b.voucher as voucher, b.merchant as merchant, count(b.iCode) as itemcount,
sum((b.qty*b.rate)) as bamount FROM tbl_bills t left join tbl_bill_items b on(t.voucher = b.voucher  and t.term=b.term and t.merchant=b.merchant)
left outer join tbl_customers c on  (t.custID = c.custID and t.merchant=c.merchant) left outer join tbl_merchants m on (t.merchant=m.merchant)
where b.voucher Is Not null group by b.voucher,b.term, b.merchant)

and the answer is this

in this you can see there are 85 rows fetched . i wasnt that no of rows as my result. how can i do that. im stuck in here. please help me

thanks in advance


Viewing all articles
Browse latest Browse all 1350

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>