I am trying to get a count of how many contracts were renewals -
The data elements in the table (F1720) are:
CHAN8 = Cust #
CHDOCO = contract #
CHLANO = site #
CHCSDT = start date
CHCDTE = end date
here is my SQL:
SELECT F1720.CHAN8, F1720.CHDOCO, F1720.CHLANO, F1720.CHCSDT, F1720.CHCDTE
FROM F1720
ORDER BY F1720.CHAN8, F1720.CHDOCO;
basically - any contract where the diff between the end date and the start of the next contract is over 6 months - this is considered a renewal and i need to count it. (Note: this is true only where the site # is the same)
hope this makes sense...
Thanks
The data elements in the table (F1720) are:
CHAN8 = Cust #
CHDOCO = contract #
CHLANO = site #
CHCSDT = start date
CHCDTE = end date
here is my SQL:
SELECT F1720.CHAN8, F1720.CHDOCO, F1720.CHLANO, F1720.CHCSDT, F1720.CHCDTE
FROM F1720
ORDER BY F1720.CHAN8, F1720.CHDOCO;
basically - any contract where the diff between the end date and the start of the next contract is over 6 months - this is considered a renewal and i need to count it. (Note: this is true only where the site # is the same)
hope this makes sense...
Thanks