This is an example: I want to see how good my marketing efforts are for a product that I am trying to sell in a store. For example, I want to know how many people bought my product within a month after they received a coupon for it in their email 12/1/2014, compared with how many people bought my product for the same period of time, not after receiving the coupon. Here is a sample table of my client:
CUSTOMER_NUMBER PURCHASE_DATE
--------------- -------------
1 2014-12-02
2 2014-12-05
3 2014-12-05
4 2014-12-10
5 2014-12-21
Here is an example of my email table
CUSTOMER_NUMBER EMAIL_ADDR SEND_DATE
--------------- ------------ ----------
1 john@abc.com 2014-12-01
3 mary@xyz.com 2014-12-01
5 beth@def.com 2014-12-01
, , : . , , , - ( , ..), , , , . , . 2 5 , , , .
IBM Netezza DB. !