I have two tables reg_dealer and claim_data .
SELECT YEAR(claim_dt) AS `Year`, 
       MONTHNAME(claim_dt) AS `Month`, 
       COUNT(distinct `uniquecode`) AS `No of Reg` 
FROM claim_data
WHERE YEAR(claim_dt) = '2016' 
GROUP BY `Year`, `Month` 
ORDER BY MONTH(claim_dt) DESC
SELECT YEAR(reg_date) AS `Year`, 
       MONTHNAME(reg_date) AS `Month`, 
       COUNT(*) AS `No of Reg`
FROM reg_dealer 
WHERE YEAR(reg_date) = '2016' 
GROUP BY `Year`, `Month` 
ORDER BY MONTH(reg_date)  DESC
i am getting month wise result from both table in same format.
Year----------Month----------No_of_Reg
2016          March           150
2016          February        125
2016          Janurary         75
and i want registration and claim in a one go
Year----------Month----------No_of_Reg---------No_of_claims
2016          March           150                350
2016          February        125                250
2016          Janurary         75                150
also want to get the unique claimants
please help
 
     
    