Hi,
There is a table named status keeping status of a policy at the end of every month.
The schema of the table is as below.
sym pol mod stat_198612 stat_198701 stat_198702 stat_198703
AAB 1409502 00 f f f f
AAB 1409502 01 f f f f
AAB 1409503 00 f f f f
AAB 1409503 01 f f f f
AAB 1409504 00 f f f f
AAB 1409505 00 f f f f
AAB 1409506 00 f f f f
AAB 1409507 00 f f f f
AAB 1409508 00 f f f f
AAB 1409509 00 f f f f
I want to write a function by using Sql Server 2000 so that I can pass the value of sym, pol, mod and month_end_year like '198612' and will get the status of the policy.
I know that the create function has certain limitation in SQL2000 and support Execute statement only for extended stored procedure.
Any Quick suggestion will be highly appreciable..........
Thanks in advance.......