I am arriving at the total number of days a service has been used in a month. (Start_Date and End_Date are - both inclusive)
Sample Data 1:
User Sta
As @Pravin Satav addressed, your requirement it's not very clear, something like this is what I understood from your explanation:
SELECT sum(CASE WHEN end_date=start_date THEN 1 ELSE (end_date-start_date)+1 END) as total_days FROM my_table WHERE ;