Originally posted by Delerna
Hi Delerna,
Thanks for all the help in the previous post of mine and I need help again. Current output is showing results as given below from previous query and posts which we communicated but I need some modifications (i want to count 0 as "daysinbetw een" if "dte" repeat itself for "ab" and "id" combination) to put 0 for duplicate dates in "daysinbetw een" -
current results -
id ab dte daysinbetween
1/01/2007 --assumed first of the month
14 ab 1/11/2007 10
14 ab 1/11/2007 10
14 ab 1/11/2007 10
14 ab 1/25/2007 14
14 ab 2/1/2007 6
3/01/2007--assumed first of the month
15 cd 3/13/2007 12
15 cd 3/13/2007 12
15 cd 3/13/2007 12
15 cd 3/24/2007 11
15 cd 3/24/2007 11
15 cd 3/28/2007 4
Modified results would be -
id ab dte days in between
1/01/2007 --assumed first of the month
14 ab 1/11/2007 10
14 ab 1/11/2007 0
14 ab 1/11/2007 0
14 ab 1/25/2007 14
14 ab 1/25/2007 0
14 ab 2/1/2007 6
3/01/2007 --assumed first of the month
15 cd 3/13/2007 12
15 cd 3/13/2007 0
15 cd 3/13/2007 0
15 cd 3/24/2007 11
15 cd 3/24/2007 0
15 cd 3/28/2007 4
Thanks again!
Comment