New to Crystal Report
i am started working on creating sample Report.
I have two tables stockin stcokout like following
date materialid quantity
in report i have to show like this:
date material in out
12/11/2012 Soap 5
12/11/2012 Soap 2
12/12/2012 Soap 2
12/12/2012 Soap 2
--------------------------------------------------------------
Total 7 4
-------------------------------------------------------------
InStock 3
-------------------------------------------------------------
12/11/2012 Shampoo 15
12/11/2012 Shampoo 2
12/12/2012 Shampoo 2
--------------------------------------------------------------
Total 15 4
-------------------------------------------------------------
InStock 11
At present i have queried like this:
select entrydate,materialid, quantity, 'In' as Direction from stockin
union
select entrydate, materialid, quantity,'Out' as Direction from stockout
But i have to show separate columns for in and out
Can you please refer me some link for any tutorial on how to change columns like this in report