I have a table with following columns
toolid, Quantity, dtfrom, dtto, projectid etc.
We have master tables for tools and project. The tools have license for a particular period say dtfrom is 1/1/2012 and dtto is 30/3/2012.
I have to show monthly report for quantity of tools purchased in a particular month.
The report will look like
sno toolname projectname quantity jan feb mar apr ......
Please help in writing SQL query for it.
you have to do something like this: