HiI have the following Query and it works fine. It shows me the monthly value of order received.select Month(Recieved) as MI, DateName(Month,Recieved) as mm , Sum(Fee) as amtfrom JobOrderwhere year(Recieved) = @Yearand Consultant = @Branchgroup by month(Recieved) , DateName(Month,Recieved)Order by Month(recieved)
I need to also retrieve the value of orders placed as belowselect Month(Recieved) as MI, DateName(Month,Recieved) as mm , Sum(Fee) as amt,Sum(fee) as amtPlaced where result='Placed'from JobOrderwhere year(Recieved) = @Yearand Consultant = @Branchgroup by month(Recieved) , DateName(Month,Recieved)Order by Month(recieved)