Can I solve this in query
I have customer that stay in hotel from example 01/09/2014 to 20/09/2014 and they paid for that some money. And I have customer that stay from 10/09/2014 to 24/09/2014. I need query that will split the money to every day from 01/09/2014 to 24/09/2014 to see for every day income.But I also have one more problem with this, becouse first and last day can have half of price from ordinary days. Exampe. They stay 3 day and pay 5 something, I need that first day have 1 other two 2 somethink
I have customer that stay in hotel from example 01/09/2014 to 20/09/2014 and they paid for that some money. And I have customer that stay from 10/09/2014 to 24/09/2014. I need query that will split the money to every day from 01/09/2014 to 24/09/2014 to see for every day income.But I also have one more problem with this, becouse first and last day can have half of price from ordinary days. Exampe. They stay 3 day and pay 5 something, I need that first day have 1 other two 2 somethink
Last edited: