CrystalVis
Technical User
I've a table that will always stored ten rows of data. I've a DTS package that run weekly to populate this table. What I'm trying to accomplish is remove the oldest row from the table in order to keep the number of row = 10 at all time.
For example:
As_of_Date Category
9/11/2003 Hungry Howie
9/18/2003 Papa John
9/25/2003 Domino Pizza
10/2/2003 Pizza Hut
10/9/2003 Littel Ceasar
.... .............
11/13/2003 ABC Pizza
I want to remove the 9/11/2003 from the table. As_of_Date is a true datetime field. There is no key field in this table. I have tried to use the MIN function on the As_of_Date, but it doesn't work. Can someone please help. Thanks
For example:
As_of_Date Category
9/11/2003 Hungry Howie
9/18/2003 Papa John
9/25/2003 Domino Pizza
10/2/2003 Pizza Hut
10/9/2003 Littel Ceasar
.... .............
11/13/2003 ABC Pizza
I want to remove the 9/11/2003 from the table. As_of_Date is a true datetime field. There is no key field in this table. I have tried to use the MIN function on the As_of_Date, but it doesn't work. Can someone please help. Thanks