I am running Crystal Reports 8.5 with a SQL 2000 database. I am trying to return the date of the last order for each customer id number and then compare it to current date and show it only if it is older than 180 days.
order_no order_date customer_id
102005 12/24/2002 10002584
105001 9/25/2003 10540001
106012 12/21/2003 10500142
106255 8/27/2003 10600045
103298 1/15/2003 10540001
104125 6/18/2003 10500142
103546 4/28/2003 10611223
data retrieved
customer_id order_date order_no
10002584 12/24/2002 102005
10611223 4/28/2003 103546
Thank You in advance
Randy
order_no order_date customer_id
102005 12/24/2002 10002584
105001 9/25/2003 10540001
106012 12/21/2003 10500142
106255 8/27/2003 10600045
103298 1/15/2003 10540001
104125 6/18/2003 10500142
103546 4/28/2003 10611223
data retrieved
customer_id order_date order_no
10002584 12/24/2002 102005
10611223 4/28/2003 103546
Thank You in advance
Randy