Dear All,
I have customer table with datecreated and emailid field.
I need to select all customer records exactly created 365 days before(last year same day) by comapring their email id with last 45 days sales records to find the customer those who not renewed their policy within last 45 days.
for ex
(last year records 8-8-2010)
123 @gmail.com
test@yahoo.com
xyxy@msn.com
(last 45 days records)
tt@yy.com
zzz@gmail.com
test@yahoo.com
f1@f1.com
city@city.com
result
(not renewed in last 45 days)
123 @gmail.com
xyxy@msn.com
How to filter this.Any help is highly appreciated.
Regards,
SG
I have customer table with datecreated and emailid field.
I need to select all customer records exactly created 365 days before(last year same day) by comapring their email id with last 45 days sales records to find the customer those who not renewed their policy within last 45 days.
for ex
(last year records 8-8-2010)
123 @gmail.com
test@yahoo.com
xyxy@msn.com
(last 45 days records)
tt@yy.com
zzz@gmail.com
test@yahoo.com
f1@f1.com
city@city.com
result
(not renewed in last 45 days)
123 @gmail.com
xyxy@msn.com
How to filter this.Any help is highly appreciated.
Regards,
SG