Jbenson is right, you do NOT want to use cursors, they are performance killers and are the last resort if nothing else works. If you are not a dba, it is best that you forget about using cursors ever. Give use some sample data and sample results and we can figure out a set-based way to do you task.
"NOTHING is more important in a database than integrity." ESquared