B
Bibi
I am working with a property management database. I need to summarize how
many leases written during a give period are renewals.
qLease Renewal Step 1
Property IDNumber Lease Begins Lease EndsDuration Date SignedCount
121es 2817 8/20/2005 8/15/2006 360 5/4/2005 1
121es 3968 12/6/2006 8/20/2007 257 12/6/2006 1
121es 4626 8/30/2007 8/10/2008 346 8/14/2007 1
If the next lease on a property begins the day after the previous lease
expired, the lease is considered a RENEWAL as long as it is for a minimum of
180 days in duration.
If the next lease on a property begins the day after the previous lease
expired but the duration of the next lease is for less than 180 days then it
is considered NEW.
If the Lease Ends date is greater than (Lease Ends + 1) then it is
considered NEW.
The user may decide to designate those leases less than 180 days as
extensions – I have not heard back from them yet. But in the meantime, I
really need help with the basic NEXT lease query - I do not know how to
express this. I can not write code. All help will be greatly appreciated.
many leases written during a give period are renewals.
qLease Renewal Step 1
Property IDNumber Lease Begins Lease EndsDuration Date SignedCount
121es 2817 8/20/2005 8/15/2006 360 5/4/2005 1
121es 3968 12/6/2006 8/20/2007 257 12/6/2006 1
121es 4626 8/30/2007 8/10/2008 346 8/14/2007 1
If the next lease on a property begins the day after the previous lease
expired, the lease is considered a RENEWAL as long as it is for a minimum of
180 days in duration.
If the next lease on a property begins the day after the previous lease
expired but the duration of the next lease is for less than 180 days then it
is considered NEW.
If the Lease Ends date is greater than (Lease Ends + 1) then it is
considered NEW.
The user may decide to designate those leases less than 180 days as
extensions – I have not heard back from them yet. But in the meantime, I
really need help with the basic NEXT lease query - I do not know how to
express this. I can not write code. All help will be greatly appreciated.