Hi guys,
suppose i have a column name udate..
UDATE
1/7/2008 12:00:00 AM
3/29/2008 12:00:00 AM
6/10/2008 12:00:00 AM
4/11/2008 12:00:00 AM
I want to find the Year to Date for the current year....
If a set of sales occured before 1/1/2008, then it would not be part of this year to date sales.....
so for all sales(another column in same table) done between 1/1/2008 and 31/12/2008 i need a total?
then the data would move to the field in another table (field anme: ULYRSALES )
when the System date turned past 1/1/2009 etc using trigger........
Also triggers this to increment up by 1 day evry day that lapse past the last sale date
Cheers...
akiles
Start Free Trial