query 1 -
SELECT Sum(medclaim.paid_amount) FROM Fourth_level INNER JOIN medclaim ON fourth_level.level4_id = Medclaim.level4_id WHERE level4_description = 'RETIREE' AND (medclaim.paid_date between '26-may-10' and '26-jul-10')
output = 250000.32345 (let)
(select count ( member_id) from member)
output = 2005
Now i have to divide above 2 out put
that is query 1 out put / query 2 output
please write a query in sql
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.