What i understand from your tip is you want something like this
select a.warehouse as 'WAREHOUSE' , a.transaction_type,a.cnt as cntA, b.transaction_type, b.cnt as cntB
FROM (select warehouse, transaction_type, count(*) as cnt from strip group by warehouse, transaction_type) A ,
(select warehouse, transaction_type, count(*) as cnt from strip group by warehouse, transaction_type) B
WHERE a.warehouse=b.warehouse and a.transaction_type>b.transaction_type
Hi adw,
Sorry i missed one thing, If you have more than two type of transaction_type then include transaction_type in ('issu','rece') in both inner query's where condition.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.