this is my query for displaying monthly business
select convert(varchar,dateadd(month,datediff(month,0,inv_date),0),101) as 'months with date format', sum(inv_amount) as 'business' from invoices inner join customers on customers.cust_id =invoices.cust_id where fname+' '+lname='lala fazlani' group by customers.cust_id,dateadd(month,datediff(month,0,inv_date),0) order by customers.cust_id,dateadd(month,datediff(month,0,inv_date),0)
So when I execute this command, It gives me this result
http://img821.imageshack.us/img821/6492/sqle.jpg
http://img341.imageshack.us/img341/538/chartv.jpg
as you may notice, the months where there was no transaction are missing so the chart looks incomplete.
can anyone help me with this ?