Hi
Can someone help me here. I need to create a cursor, and this I am not sure of. I have never created one. As a BA never created a cursor. Please help.
DB Fields-
Table- Accounts
Acct_ID Acct_Name FiscalEnd_Date
101 US Bonds 10/31/2013
102 Small Cap 6/30/2014
103 Large Cap 3/31/2014
I have created a view that shows holidays for individual accounts globally (account specific)
View- Holidays
Acct_ID Holiday_Dates (including weekends)
1 1/1/2013 (holiday)
1 1/5/2013 (Saturday)
1 1/6/2013 (Sunday)....
Logic Validation-
If current date=FiscalEnd_date and current date= Hoilday
then fetch the next day, check if this day is a holiday, if not holiday then count the number of days between the FiscalEnd_Date and Current Date +1
else step to next date, and repeat until next working date is reached.
Can someone help me here. I need to create a cursor, and this I am not sure of. I have never created one. As a BA never created a cursor. Please help.
DB Fields-
Table- Accounts
Acct_ID Acct_Name FiscalEnd_Date
101 US Bonds 10/31/2013
102 Small Cap 6/30/2014
103 Large Cap 3/31/2014
I have created a view that shows holidays for individual accounts globally (account specific)
View- Holidays
Acct_ID Holiday_Dates (including weekends)
1 1/1/2013 (holiday)
1 1/5/2013 (Saturday)
1 1/6/2013 (Sunday)....
Logic Validation-
If current date=FiscalEnd_date and current date= Hoilday
then fetch the next day, check if this day is a holiday, if not holiday then count the number of days between the FiscalEnd_Date and Current Date +1
else step to next date, and repeat until next working date is reached.