J
J.J.
hi
I have a table with saison_Id, saison_begin and saison_end in which i have 9
records or 9 saisons.
in secodnd table i enter guest_id, guest_name, guest_arrival and
guest_departure.
now i need a query that calculates how many days did the guest stayed by
saisons.
example:
first saison is form 17/07 till 14/08
second saison is form 14/08 till 21/08
so if the guest arrived 24/07 and departured 31/07 then it's 7 days in first
saison
or if the guests arrived 07/08 ad departured 21/08 then it's 7 days in first
and 7 days in sacond saison.
any suggestion how should i solve this problem?
thanks in advance
J.J.
I have a table with saison_Id, saison_begin and saison_end in which i have 9
records or 9 saisons.
in secodnd table i enter guest_id, guest_name, guest_arrival and
guest_departure.
now i need a query that calculates how many days did the guest stayed by
saisons.
example:
first saison is form 17/07 till 14/08
second saison is form 14/08 till 21/08
so if the guest arrived 24/07 and departured 31/07 then it's 7 days in first
saison
or if the guests arrived 07/08 ad departured 21/08 then it's 7 days in first
and 7 days in sacond saison.
any suggestion how should i solve this problem?
thanks in advance
J.J.